@@ -0,0 +1,2065 @@
+import java.io.Serializable;%0A%0Aimport javax.persistence.CascadeType;%0Aimport javax.persistence.Column;%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.GeneratedValue;%0Aimport javax.persistence.Id;%0Aimport javax.persistence.OneToOne;%0A%0A@Entity%0Apublic class ContactInfo implements Serializable%7B%0A%09private static final long serialVersionUID = -4336182674133849896L;%0A%09private Integer contactid;%0A%09/** %E5%9C%B0%E5%9D%80 **/%0A%09private String address;%0A%09/** %E9%82%AE%E7%BC%96 **/%0A%09private String postalcode;%0A%09/** %E5%BA%A7%E6%9C%BA **/%0A%09private String phone;%0A%09/** %E6%89%8B%E6%9C%BA **/%0A%09private String mobile;%0A%09/** %E6%89%80%E5%B1%9E%E7%94%A8%E6%88%B7 **/%0A%09private Buyer buyer;%0A%09@Id @GeneratedValue%0A%09public Integer getContactid() %7B%0A%09%09return contactid;%0A%09%7D%0A%09public void setContactid(Integer contactid) %7B%0A%09%09this.contactid = contactid;%0A%09%7D%0A%09@Column(length=100,nullable=false)%0A%09public String getAddress() %7B%0A%09%09return address;%0A%09%7D%0A%09public void setAddress(String address) %7B%0A%09%09this.address = address;%0A%09%7D%0A%09@Column(length=6)%0A%09public String getPostalcode() %7B%0A%09%09return postalcode;%0A%09%7D%0A%09public void setPostalcode(String postcode) %7B%0A%09%09this.postalcode = postcode;%0A%09%7D%0A%09@Column(length=20)%0A%09public String getPhone() %7B%0A%09%09return phone;%0A%09%7D%0A%09public void setPhone(String phone) %7B%0A%09%09this.phone = phone;%0A%09%7D%0A%09@Column(length=11)%0A%09public String getMobile() %7B%0A%09%09return mobile;%0A%09%7D%0A%09public void setMobile(String mobile) %7B%0A%09%09this.mobile = mobile;%0A%09%7D%0A%09@OneToOne(mappedBy=%22contactInfo%22,cascade=CascadeType.REFRESH)%0A%09public Buyer getBuyer() %7B%0A%09%09return buyer;%0A%09%7D%0A%09public void setBuyer(Buyer buyer) %7B%0A%09%09this.buyer = buyer;%0A%09%7D%0A%09@Override%0A%09public int hashCode() %7B%0A%09%09final int prime = 31;%0A%09%09int result = 1;%0A%09%09result = prime * result%0A%09%09%09%09+ ((contactid == null) ? super.hashCode() : contactid.hashCode());%0A%09%09return result;%0A%09%7D%0A%09@Override%0A%09public boolean equals(Object obj) %7B%0A%09%09if (this == obj)%0A%09%09%09return true;%0A%09%09if (obj == null)%0A%09%09%09return false;%0A%09%09if (getClass() != obj.getClass())%0A%09%09%09return false;%0A%09%09final ContactInfo other = (ContactInfo) obj;%0A%09%09if (contactid == null) %7B%0A%09%09%09if (other.contactid != null)%0A%09%09%09%09return false;%0A%09%09%7D else if (!contactid.equals(other.contactid))%0A%09%09%09return false;%0A%09%09return true;%0A%09%7D%0A%09%0A%7D%0A

Create ContactInfo.java