sascha@3332: package de.intevation.seddb.model; sascha@3332: // Generated 14.06.2012 11:30:57 by Hibernate Tools 3.4.0.CR1 sascha@3332: sascha@3332: sascha@3332: import java.math.BigDecimal; sascha@3332: import javax.persistence.Column; sascha@3332: import javax.persistence.Embeddable; sascha@3332: sascha@3332: /** sascha@3332: * MessunguferbezugId generated by hbm2java sascha@3332: */ sascha@3332: @Embeddable sascha@3332: public class MessunguferbezugId implements java.io.Serializable { sascha@3332: sascha@3332: sascha@3332: private long messungid; sascha@3332: private boolean uferistlinks; sascha@3332: private BigDecimal hmabst; sascha@3332: sascha@3332: public MessunguferbezugId() { sascha@3332: } sascha@3332: sascha@3332: public MessunguferbezugId(long messungid, boolean uferistlinks) { sascha@3332: this.messungid = messungid; sascha@3332: this.uferistlinks = uferistlinks; sascha@3332: } sascha@3332: public MessunguferbezugId(long messungid, boolean uferistlinks, BigDecimal hmabst) { sascha@3332: this.messungid = messungid; sascha@3332: this.uferistlinks = uferistlinks; sascha@3332: this.hmabst = hmabst; sascha@3332: } sascha@3334: sascha@3332: sascha@3332: sascha@3332: @Column(name="MESSUNGID", nullable=false, precision=11, scale=0) sascha@3332: public long getMessungid() { sascha@3332: return this.messungid; sascha@3332: } sascha@3334: sascha@3332: public void setMessungid(long messungid) { sascha@3332: this.messungid = messungid; sascha@3332: } sascha@3332: sascha@3332: sascha@3332: @Column(name="UFERISTLINKS", nullable=false, precision=1, scale=0) sascha@3332: public boolean isUferistlinks() { sascha@3332: return this.uferistlinks; sascha@3332: } sascha@3334: sascha@3332: public void setUferistlinks(boolean uferistlinks) { sascha@3332: this.uferistlinks = uferistlinks; sascha@3332: } sascha@3332: sascha@3332: sascha@3332: @Column(name="HMABST", precision=8, scale=3) sascha@3332: public BigDecimal getHmabst() { sascha@3332: return this.hmabst; sascha@3332: } sascha@3334: sascha@3332: public void setHmabst(BigDecimal hmabst) { sascha@3332: this.hmabst = hmabst; sascha@3332: } sascha@3332: sascha@3332: sascha@3332: public boolean equals(Object other) { sascha@3332: if ( (this == other ) ) return true; sascha@3332: if ( (other == null ) ) return false; sascha@3332: if ( !(other instanceof MessunguferbezugId) ) return false; sascha@3334: MessunguferbezugId castOther = ( MessunguferbezugId ) other; sascha@3334: sascha@3332: return (this.getMessungid()==castOther.getMessungid()) sascha@3332: && (this.isUferistlinks()==castOther.isUferistlinks()) sascha@3332: && ( (this.getHmabst()==castOther.getHmabst()) || ( this.getHmabst()!=null && castOther.getHmabst()!=null && this.getHmabst().equals(castOther.getHmabst()) ) ); sascha@3332: } sascha@3334: sascha@3332: public int hashCode() { sascha@3332: int result = 17; sascha@3334: sascha@3332: result = 37 * result + (int) this.getMessungid(); sascha@3332: result = 37 * result + (this.isUferistlinks()?1:0); sascha@3332: result = 37 * result + ( getHmabst() == null ? 0 : this.getHmabst().hashCode() ); sascha@3332: return result; sascha@3334: } sascha@3332: }