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: * HpeilpunktId generated by hbm2java sascha@3332: */ sascha@3332: @Embeddable sascha@3332: public class HpeilpunktId implements java.io.Serializable { sascha@3332: sascha@3332: sascha@3332: private long hpeilungid; sascha@3332: private int punktnr; sascha@3332: sascha@3332: public HpeilpunktId() { sascha@3332: } sascha@3332: sascha@3332: public HpeilpunktId(long hpeilungid, int punktnr) { sascha@3332: this.hpeilungid = hpeilungid; sascha@3332: this.punktnr = punktnr; sascha@3332: } sascha@3334: sascha@3332: sascha@3332: sascha@3332: @Column(name="HPEILUNGID", nullable=false, precision=11, scale=0) sascha@3332: public long getHpeilungid() { sascha@3332: return this.hpeilungid; sascha@3332: } sascha@3334: sascha@3332: public void setHpeilungid(long hpeilungid) { sascha@3332: this.hpeilungid = hpeilungid; sascha@3332: } sascha@3332: sascha@3332: sascha@3332: @Column(name="PUNKTNR", nullable=false, precision=5, scale=0) sascha@3332: public int getPunktnr() { sascha@3332: return this.punktnr; sascha@3332: } sascha@3334: sascha@3332: public void setPunktnr(int punktnr) { sascha@3332: this.punktnr = punktnr; 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 HpeilpunktId) ) return false; sascha@3334: HpeilpunktId castOther = ( HpeilpunktId ) other; sascha@3334: sascha@3332: return (this.getHpeilungid()==castOther.getHpeilungid()) sascha@3332: && (this.getPunktnr()==castOther.getPunktnr()); sascha@3332: } sascha@3334: sascha@3332: public int hashCode() { sascha@3332: int result = 17; sascha@3334: sascha@3332: result = 37 * result + (int) this.getHpeilungid(); sascha@3332: result = 37 * result + this.getPunktnr(); sascha@3332: return result; sascha@3334: } sascha@3332: }