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: * SlotlinksId generated by hbm2java sascha@3332: */ sascha@3332: @Embeddable sascha@3332: public class SlotlinksId implements java.io.Serializable { sascha@3332: sascha@3332: sascha@3332: private long slotrechteid; sascha@3332: private long messungid; sascha@3332: private BigDecimal uferabst; sascha@3332: private BigDecimal tsand; sascha@3332: private BigDecimal tschweb; sascha@3332: private BigDecimal fv; sascha@3332: private BigDecimal vm; sascha@3332: private BigDecimal tiefe; sascha@3332: private BigDecimal vsohle; sascha@3332: private String bemerkung; sascha@3332: private BigDecimal uferablinks; sascha@3332: private BigDecimal linksabst; sascha@3332: sascha@3332: public SlotlinksId() { sascha@3332: } sascha@3332: sascha@3332: public SlotlinksId(long slotrechteid, long messungid, BigDecimal uferabst) { sascha@3332: this.slotrechteid = slotrechteid; sascha@3332: this.messungid = messungid; sascha@3332: this.uferabst = uferabst; sascha@3332: } sascha@3332: public SlotlinksId(long slotrechteid, long messungid, BigDecimal uferabst, BigDecimal tsand, BigDecimal tschweb, BigDecimal fv, BigDecimal vm, BigDecimal tiefe, BigDecimal vsohle, String bemerkung, BigDecimal uferablinks, BigDecimal linksabst) { sascha@3332: this.slotrechteid = slotrechteid; sascha@3332: this.messungid = messungid; sascha@3332: this.uferabst = uferabst; sascha@3332: this.tsand = tsand; sascha@3332: this.tschweb = tschweb; sascha@3332: this.fv = fv; sascha@3332: this.vm = vm; sascha@3332: this.tiefe = tiefe; sascha@3332: this.vsohle = vsohle; sascha@3332: this.bemerkung = bemerkung; sascha@3332: this.uferablinks = uferablinks; sascha@3332: this.linksabst = linksabst; sascha@3332: } sascha@3334: sascha@3332: sascha@3332: sascha@3332: @Column(name="SLOTRECHTEID", nullable=false, precision=11, scale=0) sascha@3332: public long getSlotrechteid() { sascha@3332: return this.slotrechteid; sascha@3332: } sascha@3334: sascha@3332: public void setSlotrechteid(long slotrechteid) { sascha@3332: this.slotrechteid = slotrechteid; sascha@3332: } 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="UFERABST", nullable=false, precision=8, scale=3) sascha@3332: public BigDecimal getUferabst() { sascha@3332: return this.uferabst; sascha@3332: } sascha@3334: sascha@3332: public void setUferabst(BigDecimal uferabst) { sascha@3332: this.uferabst = uferabst; sascha@3332: } sascha@3332: sascha@3332: sascha@3332: @Column(name="TSAND", precision=8, scale=3) sascha@3332: public BigDecimal getTsand() { sascha@3332: return this.tsand; sascha@3332: } sascha@3334: sascha@3332: public void setTsand(BigDecimal tsand) { sascha@3332: this.tsand = tsand; sascha@3332: } sascha@3332: sascha@3332: sascha@3332: @Column(name="TSCHWEB", precision=8, scale=3) sascha@3332: public BigDecimal getTschweb() { sascha@3332: return this.tschweb; sascha@3332: } sascha@3334: sascha@3332: public void setTschweb(BigDecimal tschweb) { sascha@3332: this.tschweb = tschweb; sascha@3332: } sascha@3332: sascha@3332: sascha@3332: @Column(name="FV", precision=6, scale=3) sascha@3332: public BigDecimal getFv() { sascha@3332: return this.fv; sascha@3332: } sascha@3334: sascha@3332: public void setFv(BigDecimal fv) { sascha@3332: this.fv = fv; sascha@3332: } sascha@3332: sascha@3332: sascha@3332: @Column(name="VM", precision=6, scale=4) sascha@3332: public BigDecimal getVm() { sascha@3332: return this.vm; sascha@3332: } sascha@3334: sascha@3332: public void setVm(BigDecimal vm) { sascha@3332: this.vm = vm; sascha@3332: } sascha@3332: sascha@3332: sascha@3332: @Column(name="TIEFE", precision=8, scale=3) sascha@3332: public BigDecimal getTiefe() { sascha@3332: return this.tiefe; sascha@3332: } sascha@3334: sascha@3332: public void setTiefe(BigDecimal tiefe) { sascha@3332: this.tiefe = tiefe; sascha@3332: } sascha@3332: sascha@3332: sascha@3332: @Column(name="VSOHLE", precision=6, scale=4) sascha@3332: public BigDecimal getVsohle() { sascha@3332: return this.vsohle; sascha@3332: } sascha@3334: sascha@3332: public void setVsohle(BigDecimal vsohle) { sascha@3332: this.vsohle = vsohle; sascha@3332: } sascha@3332: sascha@3332: sascha@3332: @Column(name="BEMERKUNG", length=240) sascha@3332: public String getBemerkung() { sascha@3332: return this.bemerkung; sascha@3332: } sascha@3334: sascha@3332: public void setBemerkung(String bemerkung) { sascha@3332: this.bemerkung = bemerkung; sascha@3332: } sascha@3332: sascha@3332: sascha@3332: @Column(name="UFERABLINKS", precision=8, scale=3) sascha@3332: public BigDecimal getUferablinks() { sascha@3332: return this.uferablinks; sascha@3332: } sascha@3334: sascha@3332: public void setUferablinks(BigDecimal uferablinks) { sascha@3332: this.uferablinks = uferablinks; sascha@3332: } sascha@3332: sascha@3332: sascha@3332: @Column(name="LINKSABST", precision=22, scale=0) sascha@3332: public BigDecimal getLinksabst() { sascha@3332: return this.linksabst; sascha@3332: } sascha@3334: sascha@3332: public void setLinksabst(BigDecimal linksabst) { sascha@3332: this.linksabst = linksabst; 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 SlotlinksId) ) return false; sascha@3334: SlotlinksId castOther = ( SlotlinksId ) other; sascha@3334: sascha@3332: return (this.getSlotrechteid()==castOther.getSlotrechteid()) sascha@3332: && (this.getMessungid()==castOther.getMessungid()) sascha@3332: && ( (this.getUferabst()==castOther.getUferabst()) || ( this.getUferabst()!=null && castOther.getUferabst()!=null && this.getUferabst().equals(castOther.getUferabst()) ) ) sascha@3332: && ( (this.getTsand()==castOther.getTsand()) || ( this.getTsand()!=null && castOther.getTsand()!=null && this.getTsand().equals(castOther.getTsand()) ) ) sascha@3332: && ( (this.getTschweb()==castOther.getTschweb()) || ( this.getTschweb()!=null && castOther.getTschweb()!=null && this.getTschweb().equals(castOther.getTschweb()) ) ) sascha@3332: && ( (this.getFv()==castOther.getFv()) || ( this.getFv()!=null && castOther.getFv()!=null && this.getFv().equals(castOther.getFv()) ) ) sascha@3332: && ( (this.getVm()==castOther.getVm()) || ( this.getVm()!=null && castOther.getVm()!=null && this.getVm().equals(castOther.getVm()) ) ) sascha@3332: && ( (this.getTiefe()==castOther.getTiefe()) || ( this.getTiefe()!=null && castOther.getTiefe()!=null && this.getTiefe().equals(castOther.getTiefe()) ) ) sascha@3332: && ( (this.getVsohle()==castOther.getVsohle()) || ( this.getVsohle()!=null && castOther.getVsohle()!=null && this.getVsohle().equals(castOther.getVsohle()) ) ) sascha@3332: && ( (this.getBemerkung()==castOther.getBemerkung()) || ( this.getBemerkung()!=null && castOther.getBemerkung()!=null && this.getBemerkung().equals(castOther.getBemerkung()) ) ) sascha@3332: && ( (this.getUferablinks()==castOther.getUferablinks()) || ( this.getUferablinks()!=null && castOther.getUferablinks()!=null && this.getUferablinks().equals(castOther.getUferablinks()) ) ) sascha@3332: && ( (this.getLinksabst()==castOther.getLinksabst()) || ( this.getLinksabst()!=null && castOther.getLinksabst()!=null && this.getLinksabst().equals(castOther.getLinksabst()) ) ); sascha@3332: } sascha@3334: sascha@3332: public int hashCode() { sascha@3332: int result = 17; sascha@3334: sascha@3332: result = 37 * result + (int) this.getSlotrechteid(); sascha@3332: result = 37 * result + (int) this.getMessungid(); sascha@3332: result = 37 * result + ( getUferabst() == null ? 0 : this.getUferabst().hashCode() ); sascha@3332: result = 37 * result + ( getTsand() == null ? 0 : this.getTsand().hashCode() ); sascha@3332: result = 37 * result + ( getTschweb() == null ? 0 : this.getTschweb().hashCode() ); sascha@3332: result = 37 * result + ( getFv() == null ? 0 : this.getFv().hashCode() ); sascha@3332: result = 37 * result + ( getVm() == null ? 0 : this.getVm().hashCode() ); sascha@3332: result = 37 * result + ( getTiefe() == null ? 0 : this.getTiefe().hashCode() ); sascha@3332: result = 37 * result + ( getVsohle() == null ? 0 : this.getVsohle().hashCode() ); sascha@3332: result = 37 * result + ( getBemerkung() == null ? 0 : this.getBemerkung().hashCode() ); sascha@3332: result = 37 * result + ( getUferablinks() == null ? 0 : this.getUferablinks().hashCode() ); sascha@3332: result = 37 * result + ( getLinksabst() == null ? 0 : this.getLinksabst().hashCode() ); sascha@3332: return result; sascha@3334: } sascha@3332: }