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: * Gprobe generated by hbm2java sascha@3332: */ sascha@3332: @Entity sascha@3332: @Table(name="GPROBE" sascha@3332: ,schema="SEDDB" sascha@3332: ) sascha@3332: public class Gprobe implements java.io.Serializable { sascha@3332: sascha@3332: sascha@3332: private GprobeId id; sascha@3332: private Glotrechte glotrechte; sascha@3332: private int messdauer; sascha@3332: private BigDecimal menge; sascha@3332: private BigDecimal gtrieb; sascha@3332: private BigDecimal faktor; sascha@3332: private BigDecimal mengeF; sascha@3332: private BigDecimal gtriebF; sascha@3332: sascha@3332: public Gprobe() { sascha@3332: } sascha@3332: sascha@3332: public Gprobe(GprobeId id, Glotrechte glotrechte, int messdauer, BigDecimal menge) { sascha@3332: this.id = id; sascha@3332: this.glotrechte = glotrechte; sascha@3332: this.messdauer = messdauer; sascha@3332: this.menge = menge; sascha@3332: } sascha@3332: public Gprobe(GprobeId id, Glotrechte glotrechte, int messdauer, BigDecimal menge, BigDecimal gtrieb, BigDecimal faktor, BigDecimal mengeF, BigDecimal gtriebF) { sascha@3332: this.id = id; sascha@3332: this.glotrechte = glotrechte; sascha@3332: this.messdauer = messdauer; sascha@3332: this.menge = menge; sascha@3332: this.gtrieb = gtrieb; sascha@3332: this.faktor = faktor; sascha@3332: this.mengeF = mengeF; sascha@3332: this.gtriebF = gtriebF; sascha@3332: } sascha@3334: sascha@3332: @EmbeddedId sascha@3332: sascha@3334: sascha@3332: @AttributeOverrides( { sascha@3334: @AttributeOverride(name="glotrechteid", column=@Column(name="GLOTRECHTEID", nullable=false, precision=11, scale=0) ), sascha@3332: @AttributeOverride(name="lfdnr", column=@Column(name="LFDNR", nullable=false, precision=5, scale=0) ) } ) sascha@3332: public GprobeId getId() { sascha@3332: return this.id; sascha@3332: } sascha@3334: sascha@3332: public void setId(GprobeId id) { sascha@3332: this.id = id; sascha@3332: } sascha@3332: sascha@3332: @ManyToOne(fetch=FetchType.LAZY) sascha@3332: @JoinColumn(name="GLOTRECHTEID", nullable=false, insertable=false, updatable=false) sascha@3332: public Glotrechte getGlotrechte() { sascha@3332: return this.glotrechte; sascha@3332: } sascha@3334: sascha@3332: public void setGlotrechte(Glotrechte glotrechte) { sascha@3332: this.glotrechte = glotrechte; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="MESSDAUER", nullable=false, precision=5, scale=0) sascha@3332: public int getMessdauer() { sascha@3332: return this.messdauer; sascha@3332: } sascha@3334: sascha@3332: public void setMessdauer(int messdauer) { sascha@3332: this.messdauer = messdauer; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="MENGE", nullable=false, precision=9, scale=3) sascha@3332: public BigDecimal getMenge() { sascha@3332: return this.menge; sascha@3332: } sascha@3334: sascha@3332: public void setMenge(BigDecimal menge) { sascha@3332: this.menge = menge; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="GTRIEB", precision=8, scale=3) sascha@3332: public BigDecimal getGtrieb() { sascha@3332: return this.gtrieb; sascha@3332: } sascha@3334: sascha@3332: public void setGtrieb(BigDecimal gtrieb) { sascha@3332: this.gtrieb = gtrieb; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="FAKTOR", precision=4, scale=3) sascha@3332: public BigDecimal getFaktor() { sascha@3332: return this.faktor; sascha@3332: } sascha@3334: sascha@3332: public void setFaktor(BigDecimal faktor) { sascha@3332: this.faktor = faktor; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="MENGE_F", precision=9, scale=3) sascha@3332: public BigDecimal getMengeF() { sascha@3332: return this.mengeF; sascha@3332: } sascha@3334: sascha@3332: public void setMengeF(BigDecimal mengeF) { sascha@3332: this.mengeF = mengeF; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="GTRIEB_F", precision=8, scale=3) sascha@3332: public BigDecimal getGtriebF() { sascha@3332: return this.gtriebF; sascha@3332: } sascha@3334: sascha@3332: public void setGtriebF(BigDecimal gtriebF) { sascha@3332: this.gtriebF = gtriebF; sascha@3332: } sascha@3332: }