/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package neljas; import javax.persistence.Column; import javax.persistence.Embeddable; /** * * @author Opetaja */ @Embeddable public class Aadress implements java.io.Serializable{ private String adre; @Column(name="aadress") public String getAdre() { return adre; } public void setAdre(String adre) { this.adre = adre; } }