package open.dolphin.infomodel; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; /** * * @author kazushi */ @Entity @Table (name ="demo_disease") public class DemoDisease implements Serializable { private static final long serialVersionUID = 1L; @Id private Long id; @Column(nullable=false) private String disease; public Long getId() { return id; } public void setId(Long id) { this.id = id; } @Override public int hashCode() { int hash = 0; hash += (id != null ? id.hashCode() : 0); return hash; } @Override public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instanceof DemoDisease)) { return false; } DemoDisease other = (DemoDisease) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return false; } return true; } @Override public String toString() { return "open.dolphin.infomodel.DemoDisease[id=" + id + "]"; } /** * @return the disease */ public String getDisease() { return disease; } /** * @param disease the disease to set */ public void setDisease(String disease) { this.disease = disease; } }