package alctail.entity; import java.io.Serializable; import javax.persistence.*; /** * The primary key class for the itemdetailtable database table. * */ @Embeddable public class ItemdetailtablePK implements Serializable { //default serial version id, required for serializable classes. private static final long serialVersionUID = 1L; private Integer id; @Temporal(TemporalType.DATE) private java.util.Date date; public ItemdetailtablePK() { } public Integer getId() { return this.id; } public void setId(Integer id) { this.id = id; } public java.util.Date getDate() { return this.date; } public void setDate(java.util.Date date) { this.date = date; } public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof ItemdetailtablePK)) { return false; } ItemdetailtablePK castOther = (ItemdetailtablePK)other; return this.id.equals(castOther.id) && this.date.equals(castOther.date); } public int hashCode() { final int prime = 31; int hash = 17; hash = hash * prime + this.id.hashCode(); hash = hash * prime + this.date.hashCode(); return hash; } }