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:  * GprobeId generated by hbm2java
sascha@3332:  */
sascha@3332: @Embeddable
sascha@3332: public class GprobeId  implements java.io.Serializable {
sascha@3332: 
sascha@3332: 
sascha@3332:      private long glotrechteid;
sascha@3332:      private int lfdnr;
sascha@3332: 
sascha@3332:     public GprobeId() {
sascha@3332:     }
sascha@3332: 
sascha@3332:     public GprobeId(long glotrechteid, int lfdnr) {
sascha@3332:        this.glotrechteid = glotrechteid;
sascha@3332:        this.lfdnr = lfdnr;
sascha@3332:     }
sascha@3334: 
sascha@3332: 
sascha@3332: 
sascha@3332:     @Column(name="GLOTRECHTEID", nullable=false, precision=11, scale=0)
sascha@3332:     public long getGlotrechteid() {
sascha@3332:         return this.glotrechteid;
sascha@3332:     }
sascha@3334: 
sascha@3332:     public void setGlotrechteid(long glotrechteid) {
sascha@3332:         this.glotrechteid = glotrechteid;
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 GprobeId) ) return false;
sascha@3334:          GprobeId castOther = ( GprobeId ) other;
sascha@3334: 
sascha@3332:          return (this.getGlotrechteid()==castOther.getGlotrechteid())
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.getGlotrechteid();
sascha@3332:          result = 37 * result + this.getLfdnr();
sascha@3332:          return result;
sascha@3334:    }
sascha@3332: }