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: * MessunglotcountId generated by hbm2java sascha@3332: */ sascha@3332: @Embeddable sascha@3332: public class MessunglotcountId implements java.io.Serializable { sascha@3332: sascha@3332: sascha@3332: private long messungid; sascha@3332: private BigDecimal glotcount; sascha@3332: private BigDecimal slotcount; sascha@3332: sascha@3332: public MessunglotcountId() { sascha@3332: } sascha@3332: sascha@3334: sascha@3332: public MessunglotcountId(long messungid) { sascha@3332: this.messungid = messungid; sascha@3332: } sascha@3332: public MessunglotcountId(long messungid, BigDecimal glotcount, BigDecimal slotcount) { sascha@3332: this.messungid = messungid; sascha@3332: this.glotcount = glotcount; sascha@3332: this.slotcount = slotcount; 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="GLOTCOUNT", precision=22, scale=0) sascha@3332: public BigDecimal getGlotcount() { sascha@3332: return this.glotcount; sascha@3332: } sascha@3334: sascha@3332: public void setGlotcount(BigDecimal glotcount) { sascha@3332: this.glotcount = glotcount; sascha@3332: } sascha@3332: sascha@3332: sascha@3332: @Column(name="SLOTCOUNT", precision=22, scale=0) sascha@3332: public BigDecimal getSlotcount() { sascha@3332: return this.slotcount; sascha@3332: } sascha@3334: sascha@3332: public void setSlotcount(BigDecimal slotcount) { sascha@3332: this.slotcount = slotcount; 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 MessunglotcountId) ) return false; sascha@3334: MessunglotcountId castOther = ( MessunglotcountId ) other; sascha@3334: sascha@3332: return (this.getMessungid()==castOther.getMessungid()) sascha@3332: && ( (this.getGlotcount()==castOther.getGlotcount()) || ( this.getGlotcount()!=null && castOther.getGlotcount()!=null && this.getGlotcount().equals(castOther.getGlotcount()) ) ) sascha@3332: && ( (this.getSlotcount()==castOther.getSlotcount()) || ( this.getSlotcount()!=null && castOther.getSlotcount()!=null && this.getSlotcount().equals(castOther.getSlotcount()) ) ); 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 + ( getGlotcount() == null ? 0 : this.getGlotcount().hashCode() ); sascha@3332: result = 37 * result + ( getSlotcount() == null ? 0 : this.getSlotcount().hashCode() ); sascha@3332: return result; sascha@3334: } sascha@3332: }