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: * MpeilpunktId generated by hbm2java sascha@3332: */ sascha@3332: @Embeddable sascha@3332: public class MpeilpunktId implements java.io.Serializable { sascha@3332: sascha@3332: sascha@3332: private long mpeilungid; sascha@3332: private int punktnr; sascha@3332: sascha@3332: public MpeilpunktId() { sascha@3332: } sascha@3332: sascha@3332: public MpeilpunktId(long mpeilungid, int punktnr) { sascha@3332: this.mpeilungid = mpeilungid; sascha@3332: this.punktnr = punktnr; sascha@3332: } sascha@3334: sascha@3332: sascha@3332: sascha@3332: @Column(name="MPEILUNGID", nullable=false, precision=11, scale=0) sascha@3332: public long getMpeilungid() { sascha@3332: return this.mpeilungid; sascha@3332: } sascha@3334: sascha@3332: public void setMpeilungid(long mpeilungid) { sascha@3332: this.mpeilungid = mpeilungid; 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 MpeilpunktId) ) return false; sascha@3334: MpeilpunktId castOther = ( MpeilpunktId ) other; sascha@3334: sascha@3332: return (this.getMpeilungid()==castOther.getMpeilungid()) 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.getMpeilungid(); sascha@3332: result = 37 * result + this.getPunktnr(); sascha@3332: return result; sascha@3334: } sascha@3332: }