Mercurial > lada > lada-server
changeset 130:7ea3ea59e971
Added missing id entity for LMessung.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 13 Jun 2013 16:11:30 +0200 |
parents | dbb7064c1290 |
children | 4e181a4aaab0 |
files | src/main/java/de/intevation/lada/model/LMessungId.java |
diffstat | 1 files changed, 67 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/de/intevation/lada/model/LMessungId.java Thu Jun 13 16:11:30 2013 +0200 @@ -0,0 +1,67 @@ +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; + +/** + * LMessungId generated by hbm2java + */ +@Embeddable +public class LMessungId implements java.io.Serializable { + + private String probeId; + private short messungsId; + + public LMessungId() { + } + + public LMessungId(String probeId, short messungsId) { + this.probeId = probeId; + this.messungsId = messungsId; + } + + @Column(name = "probe_id", nullable = false, length = 20) + public String getProbeId() { + return this.probeId; + } + + public void setProbeId(String probeId) { + this.probeId = probeId; + } + + @Column(name = "messungs_id", nullable = false) + public short getMessungsId() { + return this.messungsId; + } + + public void setMessungsId(short messungsId) { + this.messungsId = messungsId; + } + + public boolean equals(Object other) { + if ((this == other)) + return true; + if ((other == null)) + return false; + if (!(other instanceof LMessungId)) + return false; + LMessungId castOther = (LMessungId) other; + + return ((this.getProbeId() == castOther.getProbeId()) || (this + .getProbeId() != null && castOther.getProbeId() != null && this + .getProbeId().equals(castOther.getProbeId()))) + && (this.getMessungsId() == castOther.getMessungsId()); + } + + public int hashCode() { + int result = 17; + + result = 37 * result + + (getProbeId() == null ? 0 : this.getProbeId().hashCode()); + result = 37 * result + this.getMessungsId(); + return result; + } + +}