//eve package stockInformation; import javax.persistence.Embeddable; @Embeddable public class OrdlinementKey implements java.io.Serializable{ private static final long serialVersionUID = 1L; private Long orderent; private Long customerent; private Long iteamdetailsent; public OrdlinementKey(){} public Long getOrderent() { return orderent; } public void setOrderent(Long orderent) { this.orderent = orderent; } public Long getIteamdetailsent() { return iteamdetailsent; } public void setIteamdetailsent(Long iteamdetailsent) { this.iteamdetailsent = iteamdetailsent; } public Long getCustomerent() { return customerent; } public void setCustomerent(Long customerent) { this.customerent = customerent; } @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final OrdlinementKey other = (OrdlinementKey) obj; if (this.orderent != other.orderent && (this.orderent == null || !this.orderent.equals(other.orderent))) { return false; } if (this.iteamdetailsent != other.iteamdetailsent && (this.iteamdetailsent == null || !this.iteamdetailsent.equals(other.iteamdetailsent))) { return false; } if (this.customerent != other.customerent && (this.customerent == null || !this.customerent.equals(other.customerent))) { return false; } return true; } @Override public int hashCode() { int hash = 5; hash = 29 * hash + (this.orderent != null ? this.orderent.hashCode() : 0); hash = 29 * hash + (this.iteamdetailsent != null ? this.iteamdetailsent.hashCode() : 0); hash = 29 * hash + (this.customerent != null ? this.customerent.hashCode() : 0); return hash; } }