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: * Sprobe generated by hbm2java sascha@3332: */ sascha@3332: @Entity sascha@3332: @Table(name="SPROBE" sascha@3332: ,schema="SEDDB" sascha@3332: ) sascha@3332: public class Sprobe implements java.io.Serializable { sascha@3332: sascha@3332: sascha@3332: private SprobeId id; sascha@3332: private Slotrechte slotrechte; sascha@3332: private short wprozpkt; sascha@3332: private BigDecimal wpkt; sascha@3332: private BigDecimal vpkt; sascha@3332: private BigDecimal csandpkt; sascha@3332: private BigDecimal cschwebpkt; sascha@3332: private BigDecimal sandtrieb; sascha@3332: private BigDecimal schwebtrieb; sascha@3332: sascha@3332: public Sprobe() { sascha@3332: } sascha@3332: sascha@3334: sascha@3332: public Sprobe(SprobeId id, Slotrechte slotrechte, short wprozpkt, BigDecimal wpkt, BigDecimal vpkt, BigDecimal csandpkt, BigDecimal cschwebpkt) { sascha@3332: this.id = id; sascha@3332: this.slotrechte = slotrechte; sascha@3332: this.wprozpkt = wprozpkt; sascha@3332: this.wpkt = wpkt; sascha@3332: this.vpkt = vpkt; sascha@3332: this.csandpkt = csandpkt; sascha@3332: this.cschwebpkt = cschwebpkt; sascha@3332: } sascha@3332: public Sprobe(SprobeId id, Slotrechte slotrechte, short wprozpkt, BigDecimal wpkt, BigDecimal vpkt, BigDecimal csandpkt, BigDecimal cschwebpkt, BigDecimal sandtrieb, BigDecimal schwebtrieb) { sascha@3332: this.id = id; sascha@3332: this.slotrechte = slotrechte; sascha@3332: this.wprozpkt = wprozpkt; sascha@3332: this.wpkt = wpkt; sascha@3332: this.vpkt = vpkt; sascha@3332: this.csandpkt = csandpkt; sascha@3332: this.cschwebpkt = cschwebpkt; sascha@3332: this.sandtrieb = sandtrieb; sascha@3332: this.schwebtrieb = schwebtrieb; sascha@3332: } sascha@3334: sascha@3332: @EmbeddedId sascha@3332: sascha@3334: sascha@3332: @AttributeOverrides( { sascha@3334: @AttributeOverride(name="slotrechteid", column=@Column(name="SLOTRECHTEID", nullable=false, precision=11, scale=0) ), sascha@3332: @AttributeOverride(name="lfdnr", column=@Column(name="LFDNR", nullable=false, precision=5, scale=0) ) } ) sascha@3332: public SprobeId getId() { sascha@3332: return this.id; sascha@3332: } sascha@3334: sascha@3332: public void setId(SprobeId id) { sascha@3332: this.id = id; sascha@3332: } sascha@3332: sascha@3332: @ManyToOne(fetch=FetchType.LAZY) sascha@3332: @JoinColumn(name="SLOTRECHTEID", nullable=false, insertable=false, updatable=false) sascha@3332: public Slotrechte getSlotrechte() { sascha@3332: return this.slotrechte; sascha@3332: } sascha@3334: sascha@3332: public void setSlotrechte(Slotrechte slotrechte) { sascha@3332: this.slotrechte = slotrechte; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="WPROZPKT", nullable=false, precision=3, scale=0) sascha@3332: public short getWprozpkt() { sascha@3332: return this.wprozpkt; sascha@3332: } sascha@3334: sascha@3332: public void setWprozpkt(short wprozpkt) { sascha@3332: this.wprozpkt = wprozpkt; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="WPKT", nullable=false, precision=8, scale=3) sascha@3332: public BigDecimal getWpkt() { sascha@3332: return this.wpkt; sascha@3332: } sascha@3334: sascha@3332: public void setWpkt(BigDecimal wpkt) { sascha@3332: this.wpkt = wpkt; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="VPKT", nullable=false, precision=6, scale=4) sascha@3332: public BigDecimal getVpkt() { sascha@3332: return this.vpkt; sascha@3332: } sascha@3334: sascha@3332: public void setVpkt(BigDecimal vpkt) { sascha@3332: this.vpkt = vpkt; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="CSANDPKT", nullable=false, precision=8, scale=3) sascha@3332: public BigDecimal getCsandpkt() { sascha@3332: return this.csandpkt; sascha@3332: } sascha@3334: sascha@3332: public void setCsandpkt(BigDecimal csandpkt) { sascha@3332: this.csandpkt = csandpkt; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="CSCHWEBPKT", nullable=false, precision=8, scale=3) sascha@3332: public BigDecimal getCschwebpkt() { sascha@3332: return this.cschwebpkt; sascha@3332: } sascha@3334: sascha@3332: public void setCschwebpkt(BigDecimal cschwebpkt) { sascha@3332: this.cschwebpkt = cschwebpkt; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="SANDTRIEB", precision=8, scale=3) sascha@3332: public BigDecimal getSandtrieb() { sascha@3332: return this.sandtrieb; sascha@3332: } sascha@3334: sascha@3332: public void setSandtrieb(BigDecimal sandtrieb) { sascha@3332: this.sandtrieb = sandtrieb; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="SCHWEBTRIEB", precision=8, scale=3) sascha@3332: public BigDecimal getSchwebtrieb() { sascha@3332: return this.schwebtrieb; sascha@3332: } sascha@3334: sascha@3332: public void setSchwebtrieb(BigDecimal schwebtrieb) { sascha@3332: this.schwebtrieb = schwebtrieb; sascha@3332: } sascha@3332: }