Mercurial > dive4elements > river
view flys-backend/src/main/java/de/intevation/seddb/model/Sprobe.java @ 4254:33b15ac17fd1
Only create and add GaugePanel when necessary
The GaugePanel isn't created always and only show if WINFO and a river is
selected now. It is only created on demand. Therefore all access to the
GaugePanel is abstraced via methods that check if the GaugePanel is null before
accessing it's methods.
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Thu, 25 Oct 2012 13:58:53 +0200 |
parents | 2ae732e2c65c |
children | 18619c1e7c2a |
line wrap: on
line source
package de.intevation.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; } }