package ca.intelliware.ihtsdo.mlds.domain; import javax.persistence.Embeddable; import javax.persistence.ManyToOne; import org.hibernate.search.annotations.Field; import org.hibernate.search.annotations.Fields; import org.hibernate.search.annotations.IndexedEmbedded; @Embeddable public class MailingAddress implements Cloneable { @Fields({ @Field(name="ALL"), @Field()}) String street; @Fields({ @Field(name="ALL"), @Field()}) String city; @IndexedEmbedded @ManyToOne Country country; String post; public String getStreet() { return street; } public void setStreet(String street) { this.street = street; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } public Country getCountry() { return country; } public String getPost() { return post; } public void setPost(String post) { this.post = post; } public void setCountry(Country country) { this.country = country; } public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { // we support clone throw new RuntimeException(e); } } }