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 javax.persistence.Column; sascha@3332: import javax.persistence.Embeddable; sascha@3332: sascha@3332: /** sascha@3332: * SprobeId generated by hbm2java sascha@3332: */ sascha@3332: @Embeddable sascha@3332: public class SprobeId implements java.io.Serializable { sascha@3332: sascha@3332: sascha@3332: private long slotrechteid; sascha@3332: private int lfdnr; sascha@3332: sascha@3332: public SprobeId() { sascha@3332: } sascha@3332: sascha@3332: public SprobeId(long slotrechteid, int lfdnr) { sascha@3332: this.slotrechteid = slotrechteid; sascha@3332: this.lfdnr = lfdnr; 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="LFDNR", nullable=false, precision=5, scale=0) sascha@3332: public int getLfdnr() { sascha@3332: return this.lfdnr; sascha@3332: } sascha@3334: sascha@3332: public void setLfdnr(int lfdnr) { sascha@3332: this.lfdnr = lfdnr; 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 SprobeId) ) return false; sascha@3334: SprobeId castOther = ( SprobeId ) other; sascha@3334: sascha@3332: return (this.getSlotrechteid()==castOther.getSlotrechteid()) sascha@3332: && (this.getLfdnr()==castOther.getLfdnr()); 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 + this.getLfdnr(); sascha@3332: return result; sascha@3334: } sascha@3332: }