Mercurial > dive4elements > river
diff backend/src/main/java/de/intevation/seddb/model/Sprobe.java @ 5838:5aa05a7a34b7
Rename modules to more fitting names.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 15:23:37 +0200 |
parents | flys-backend/src/main/java/de/intevation/seddb/model/Sprobe.java@18619c1e7c2a |
children | 4dd33b86dc61 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/backend/src/main/java/de/intevation/seddb/model/Sprobe.java Thu Apr 25 15:23:37 2013 +0200 @@ -0,0 +1,154 @@ +package org.dive4elements.seddb.model; +// Generated 14.06.2012 11:30:57 by Hibernate Tools 3.4.0.CR1 + + +import java.math.BigDecimal; +import javax.persistence.AttributeOverride; +import javax.persistence.AttributeOverrides; +import javax.persistence.Column; +import javax.persistence.EmbeddedId; +import javax.persistence.Entity; +import javax.persistence.FetchType; +import javax.persistence.JoinColumn; +import javax.persistence.ManyToOne; +import javax.persistence.Table; + +/** + * Sprobe generated by hbm2java + */ +@Entity +@Table(name="SPROBE" + ,schema="SEDDB" +) +public class Sprobe implements java.io.Serializable { + + + private SprobeId id; + private Slotrechte slotrechte; + private short wprozpkt; + private BigDecimal wpkt; + private BigDecimal vpkt; + private BigDecimal csandpkt; + private BigDecimal cschwebpkt; + private BigDecimal sandtrieb; + private BigDecimal schwebtrieb; + + public Sprobe() { + } + + + public Sprobe(SprobeId id, Slotrechte slotrechte, short wprozpkt, BigDecimal wpkt, BigDecimal vpkt, BigDecimal csandpkt, BigDecimal cschwebpkt) { + this.id = id; + this.slotrechte = slotrechte; + this.wprozpkt = wprozpkt; + this.wpkt = wpkt; + this.vpkt = vpkt; + this.csandpkt = csandpkt; + this.cschwebpkt = cschwebpkt; + } + public Sprobe(SprobeId id, Slotrechte slotrechte, short wprozpkt, BigDecimal wpkt, BigDecimal vpkt, BigDecimal csandpkt, BigDecimal cschwebpkt, BigDecimal sandtrieb, BigDecimal schwebtrieb) { + this.id = id; + this.slotrechte = slotrechte; + this.wprozpkt = wprozpkt; + this.wpkt = wpkt; + this.vpkt = vpkt; + this.csandpkt = csandpkt; + this.cschwebpkt = cschwebpkt; + this.sandtrieb = sandtrieb; + this.schwebtrieb = schwebtrieb; + } + + @EmbeddedId + + + @AttributeOverrides( { + @AttributeOverride(name="slotrechteid", column=@Column(name="SLOTRECHTEID", nullable=false, precision=11, scale=0) ), + @AttributeOverride(name="lfdnr", column=@Column(name="LFDNR", nullable=false, precision=5, scale=0) ) } ) + public SprobeId getId() { + return this.id; + } + + public void setId(SprobeId id) { + this.id = id; + } + +@ManyToOne(fetch=FetchType.LAZY) + @JoinColumn(name="SLOTRECHTEID", nullable=false, insertable=false, updatable=false) + public Slotrechte getSlotrechte() { + return this.slotrechte; + } + + public void setSlotrechte(Slotrechte slotrechte) { + this.slotrechte = slotrechte; + } + + + @Column(name="WPROZPKT", nullable=false, precision=3, scale=0) + public short getWprozpkt() { + return this.wprozpkt; + } + + public void setWprozpkt(short wprozpkt) { + this.wprozpkt = wprozpkt; + } + + + @Column(name="WPKT", nullable=false, precision=8, scale=3) + public BigDecimal getWpkt() { + return this.wpkt; + } + + public void setWpkt(BigDecimal wpkt) { + this.wpkt = wpkt; + } + + + @Column(name="VPKT", nullable=false, precision=6, scale=4) + public BigDecimal getVpkt() { + return this.vpkt; + } + + public void setVpkt(BigDecimal vpkt) { + this.vpkt = vpkt; + } + + + @Column(name="CSANDPKT", nullable=false, precision=8, scale=3) + public BigDecimal getCsandpkt() { + return this.csandpkt; + } + + public void setCsandpkt(BigDecimal csandpkt) { + this.csandpkt = csandpkt; + } + + + @Column(name="CSCHWEBPKT", nullable=false, precision=8, scale=3) + public BigDecimal getCschwebpkt() { + return this.cschwebpkt; + } + + public void setCschwebpkt(BigDecimal cschwebpkt) { + this.cschwebpkt = cschwebpkt; + } + + + @Column(name="SANDTRIEB", precision=8, scale=3) + public BigDecimal getSandtrieb() { + return this.sandtrieb; + } + + public void setSandtrieb(BigDecimal sandtrieb) { + this.sandtrieb = sandtrieb; + } + + + @Column(name="SCHWEBTRIEB", precision=8, scale=3) + public BigDecimal getSchwebtrieb() { + return this.schwebtrieb; + } + + public void setSchwebtrieb(BigDecimal schwebtrieb) { + this.schwebtrieb = schwebtrieb; + } +}