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.AttributeOverride;
sascha@3332: import javax.persistence.AttributeOverrides;
sascha@3332: import javax.persistence.Column;
sascha@3332: import javax.persistence.EmbeddedId;
sascha@3332: import javax.persistence.Entity;
sascha@3332: import javax.persistence.FetchType;
sascha@3332: import javax.persistence.JoinColumn;
sascha@3332: import javax.persistence.ManyToOne;
sascha@3332: import javax.persistence.Table;
sascha@3332: 
sascha@3332: /**
sascha@3332:  * Mpeilpunkt generated by hbm2java
sascha@3332:  */
sascha@3332: @Entity
sascha@3332: @Table(name="MPEILPUNKT"
sascha@3332:     ,schema="SEDDB"
sascha@3332: )
sascha@3332: public class Mpeilpunkt  implements java.io.Serializable {
sascha@3332: 
sascha@3332: 
sascha@3332:      private MpeilpunktId id;
sascha@3332:      private Mpeilung mpeilung;
sascha@3332:      private BigDecimal y;
sascha@3332:      private BigDecimal z;
sascha@3332: 
sascha@3332:     public Mpeilpunkt() {
sascha@3332:     }
sascha@3332: 
sascha@3332:     public Mpeilpunkt(MpeilpunktId id, Mpeilung mpeilung, BigDecimal y, BigDecimal z) {
sascha@3332:        this.id = id;
sascha@3332:        this.mpeilung = mpeilung;
sascha@3332:        this.y = y;
sascha@3332:        this.z = z;
sascha@3332:     }
sascha@3334: 
sascha@3332:      @EmbeddedId
sascha@3332: 
sascha@3334: 
sascha@3332:     @AttributeOverrides( {
sascha@3334:         @AttributeOverride(name="mpeilungid", column=@Column(name="MPEILUNGID", nullable=false, precision=11, scale=0) ),
sascha@3332:         @AttributeOverride(name="punktnr", column=@Column(name="PUNKTNR", nullable=false, precision=5, scale=0) ) } )
sascha@3332:     public MpeilpunktId getId() {
sascha@3332:         return this.id;
sascha@3332:     }
sascha@3334: 
sascha@3332:     public void setId(MpeilpunktId id) {
sascha@3332:         this.id = id;
sascha@3332:     }
sascha@3332: 
sascha@3332: @ManyToOne(fetch=FetchType.LAZY)
sascha@3332:     @JoinColumn(name="MPEILUNGID", nullable=false, insertable=false, updatable=false)
sascha@3332:     public Mpeilung getMpeilung() {
sascha@3332:         return this.mpeilung;
sascha@3332:     }
sascha@3334: 
sascha@3332:     public void setMpeilung(Mpeilung mpeilung) {
sascha@3332:         this.mpeilung = mpeilung;
sascha@3332:     }
sascha@3332: 
sascha@3334: 
sascha@3332:     @Column(name="Y", nullable=false, precision=8, scale=3)
sascha@3332:     public BigDecimal getY() {
sascha@3332:         return this.y;
sascha@3332:     }
sascha@3334: 
sascha@3332:     public void setY(BigDecimal y) {
sascha@3332:         this.y = y;
sascha@3332:     }
sascha@3332: 
sascha@3334: 
sascha@3332:     @Column(name="Z", nullable=false, precision=8, scale=3)
sascha@3332:     public BigDecimal getZ() {
sascha@3332:         return this.z;
sascha@3332:     }
sascha@3334: 
sascha@3332:     public void setZ(BigDecimal z) {
sascha@3332:         this.z = z;
sascha@3332:     }
sascha@3332: }