Mercurial > lada > lada-server
view src/main/java/de/intevation/lada/model/LKommentarPId.java @ 56:9f3e902ce778
Added new entity, repository and service for 'LKommentarP'.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 27 May 2013 15:23:41 +0200 |
parents | |
children |
line wrap: on
line source
package de.intevation.lada.model; // Generated 21.05.2013 16:58:30 by Hibernate Tools 3.4.0.CR1 import javax.persistence.Column; import javax.persistence.Embeddable; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.SequenceGenerator; /** * LKommentarPId generated by hbm2java */ @Embeddable public class LKommentarPId implements java.io.Serializable { private String probeId; private int KId; public LKommentarPId() { } public LKommentarPId(String probeId, int KId) { this.probeId = probeId; this.KId = KId; } @Column(name = "probe_id", nullable = false, length = 20) public String getProbeId() { return this.probeId; } public void setProbeId(String probeId) { this.probeId = probeId; } @Column(name = "k_id", nullable = false) @GeneratedValue(strategy= GenerationType.AUTO, generator = "SEQ_Store") @SequenceGenerator(name = "SEQ_Store", sequenceName="lkommentarp_sequence") public int getKId() { return this.KId; } public void setKId(int KId) { this.KId = KId; } public boolean equals(Object other) { if ((this == other)) return true; if ((other == null)) return false; if (!(other instanceof LKommentarPId)) return false; LKommentarPId castOther = (LKommentarPId) other; return ((this.getProbeId() == castOther.getProbeId()) || (this .getProbeId() != null && castOther.getProbeId() != null && this .getProbeId().equals(castOther.getProbeId()))) && (this.getKId() == castOther.getKId()); } public int hashCode() { int result = 17; result = 37 * result + (getProbeId() == null ? 0 : this.getProbeId().hashCode()); result = 37 * result + this.getKId(); return result; } }