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 java.util.HashSet; sascha@3332: import java.util.Set; sascha@3332: import javax.persistence.Column; sascha@3332: import javax.persistence.Entity; sascha@3332: import javax.persistence.FetchType; sascha@3332: import javax.persistence.Id; sascha@3332: import javax.persistence.JoinColumn; sascha@3332: import javax.persistence.ManyToOne; sascha@3332: import javax.persistence.OneToMany; sascha@3332: import javax.persistence.Table; sascha@3332: import javax.persistence.UniqueConstraint; sascha@3332: sascha@3332: /** sascha@3332: * Station generated by hbm2java sascha@3332: */ sascha@3332: @Entity sascha@3332: @Table(name="STATION" sascha@3332: ,schema="SEDDB" sascha@3334: , uniqueConstraints = @UniqueConstraint(columnNames={"GEWAESSERID", "NAME"}) sascha@3332: ) sascha@3332: public class Station implements java.io.Serializable { sascha@3332: sascha@3332: sascha@3332: private long stationid; sascha@3332: private Bezugspegel bezugspegel; sascha@3332: private Gewaesser gewaesser; sascha@3332: private BigDecimal km; sascha@3332: private String name; sascha@3332: private boolean uferistlinks; sascha@3332: private BigDecimal teilVon; sascha@3332: private BigDecimal teilBis; sascha@3332: private BigDecimal abstHmst; sascha@3332: private BigDecimal LHochwert; sascha@3332: private BigDecimal LRechwert; sascha@3332: private BigDecimal LNn; sascha@3332: private BigDecimal RHochwert; sascha@3332: private BigDecimal RRechwert; sascha@3332: private BigDecimal RNn; sascha@3332: private String bemerkung; sascha@3332: private Long oldmstid; sascha@3332: private boolean istfeststoff; sascha@3332: private Set sohltests = new HashSet(0); sascha@3332: private Set hpeilungs = new HashSet(0); sascha@3332: private Set mpeilungs = new HashSet(0); sascha@3332: private Set messungs = new HashSet(0); sascha@3332: sascha@3332: public Station() { sascha@3332: } sascha@3332: sascha@3332: public Station(long stationid, Gewaesser gewaesser, BigDecimal km, String name, boolean uferistlinks, boolean istfeststoff) { sascha@3332: this.stationid = stationid; sascha@3332: this.gewaesser = gewaesser; sascha@3332: this.km = km; sascha@3332: this.name = name; sascha@3332: this.uferistlinks = uferistlinks; sascha@3332: this.istfeststoff = istfeststoff; sascha@3332: } sascha@3332: public Station(long stationid, Bezugspegel bezugspegel, Gewaesser gewaesser, BigDecimal km, String name, boolean uferistlinks, BigDecimal teilVon, BigDecimal teilBis, BigDecimal abstHmst, BigDecimal LHochwert, BigDecimal LRechwert, BigDecimal LNn, BigDecimal RHochwert, BigDecimal RRechwert, BigDecimal RNn, String bemerkung, Long oldmstid, boolean istfeststoff, Set sohltests, Set hpeilungs, Set mpeilungs, Set messungs) { sascha@3332: this.stationid = stationid; sascha@3332: this.bezugspegel = bezugspegel; sascha@3332: this.gewaesser = gewaesser; sascha@3332: this.km = km; sascha@3332: this.name = name; sascha@3332: this.uferistlinks = uferistlinks; sascha@3332: this.teilVon = teilVon; sascha@3332: this.teilBis = teilBis; sascha@3332: this.abstHmst = abstHmst; sascha@3332: this.LHochwert = LHochwert; sascha@3332: this.LRechwert = LRechwert; sascha@3332: this.LNn = LNn; sascha@3332: this.RHochwert = RHochwert; sascha@3332: this.RRechwert = RRechwert; sascha@3332: this.RNn = RNn; sascha@3332: this.bemerkung = bemerkung; sascha@3332: this.oldmstid = oldmstid; sascha@3332: this.istfeststoff = istfeststoff; sascha@3332: this.sohltests = sohltests; sascha@3332: this.hpeilungs = hpeilungs; sascha@3332: this.mpeilungs = mpeilungs; sascha@3332: this.messungs = messungs; sascha@3332: } sascha@3332: sascha@3334: @Id sascha@3334: sascha@3334: sascha@3332: @Column(name="STATIONID", unique=true, nullable=false, precision=11, scale=0) sascha@3332: public long getStationid() { sascha@3332: return this.stationid; sascha@3332: } sascha@3334: sascha@3332: public void setStationid(long stationid) { sascha@3332: this.stationid = stationid; sascha@3332: } sascha@3332: sascha@3332: @ManyToOne(fetch=FetchType.LAZY) sascha@3332: @JoinColumn(name="BEZUGSPEGELID") sascha@3332: public Bezugspegel getBezugspegel() { sascha@3332: return this.bezugspegel; sascha@3332: } sascha@3334: sascha@3332: public void setBezugspegel(Bezugspegel bezugspegel) { sascha@3332: this.bezugspegel = bezugspegel; sascha@3332: } sascha@3332: sascha@3332: @ManyToOne(fetch=FetchType.LAZY) sascha@3332: @JoinColumn(name="GEWAESSERID", nullable=false) sascha@3332: public Gewaesser getGewaesser() { sascha@3332: return this.gewaesser; sascha@3332: } sascha@3334: sascha@3332: public void setGewaesser(Gewaesser gewaesser) { sascha@3332: this.gewaesser = gewaesser; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="KM", nullable=false, precision=8, scale=3) sascha@3332: public BigDecimal getKm() { sascha@3332: return this.km; sascha@3332: } sascha@3334: sascha@3332: public void setKm(BigDecimal km) { sascha@3332: this.km = km; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="NAME", nullable=false, length=50) sascha@3332: public String getName() { sascha@3332: return this.name; sascha@3332: } sascha@3334: sascha@3332: public void setName(String name) { sascha@3332: this.name = name; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="UFERISTLINKS", nullable=false, precision=1, scale=0) sascha@3332: public boolean isUferistlinks() { sascha@3332: return this.uferistlinks; sascha@3332: } sascha@3334: sascha@3332: public void setUferistlinks(boolean uferistlinks) { sascha@3332: this.uferistlinks = uferistlinks; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="TEIL_VON", precision=8, scale=3) sascha@3332: public BigDecimal getTeilVon() { sascha@3332: return this.teilVon; sascha@3332: } sascha@3334: sascha@3332: public void setTeilVon(BigDecimal teilVon) { sascha@3332: this.teilVon = teilVon; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="TEIL_BIS", precision=8, scale=3) sascha@3332: public BigDecimal getTeilBis() { sascha@3332: return this.teilBis; sascha@3332: } sascha@3334: sascha@3332: public void setTeilBis(BigDecimal teilBis) { sascha@3332: this.teilBis = teilBis; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="ABST_HMST", precision=8, scale=3) sascha@3332: public BigDecimal getAbstHmst() { sascha@3332: return this.abstHmst; sascha@3332: } sascha@3334: sascha@3332: public void setAbstHmst(BigDecimal abstHmst) { sascha@3332: this.abstHmst = abstHmst; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="L_HOCHWERT", precision=11, scale=3) sascha@3332: public BigDecimal getLHochwert() { sascha@3332: return this.LHochwert; sascha@3332: } sascha@3334: sascha@3332: public void setLHochwert(BigDecimal LHochwert) { sascha@3332: this.LHochwert = LHochwert; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="L_RECHWERT", precision=11, scale=3) sascha@3332: public BigDecimal getLRechwert() { sascha@3332: return this.LRechwert; sascha@3332: } sascha@3334: sascha@3332: public void setLRechwert(BigDecimal LRechwert) { sascha@3332: this.LRechwert = LRechwert; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="L_NN", precision=8, scale=3) sascha@3332: public BigDecimal getLNn() { sascha@3332: return this.LNn; sascha@3332: } sascha@3334: sascha@3332: public void setLNn(BigDecimal LNn) { sascha@3332: this.LNn = LNn; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="R_HOCHWERT", precision=11, scale=3) sascha@3332: public BigDecimal getRHochwert() { sascha@3332: return this.RHochwert; sascha@3332: } sascha@3334: sascha@3332: public void setRHochwert(BigDecimal RHochwert) { sascha@3332: this.RHochwert = RHochwert; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="R_RECHWERT", precision=11, scale=3) sascha@3332: public BigDecimal getRRechwert() { sascha@3332: return this.RRechwert; sascha@3332: } sascha@3334: sascha@3332: public void setRRechwert(BigDecimal RRechwert) { sascha@3332: this.RRechwert = RRechwert; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="R_NN", precision=8, scale=3) sascha@3332: public BigDecimal getRNn() { sascha@3332: return this.RNn; sascha@3332: } sascha@3334: sascha@3332: public void setRNn(BigDecimal RNn) { sascha@3332: this.RNn = RNn; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="BEMERKUNG", length=240) sascha@3332: public String getBemerkung() { sascha@3332: return this.bemerkung; sascha@3332: } sascha@3334: sascha@3332: public void setBemerkung(String bemerkung) { sascha@3332: this.bemerkung = bemerkung; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="OLDMSTID", precision=11, scale=0) sascha@3332: public Long getOldmstid() { sascha@3332: return this.oldmstid; sascha@3332: } sascha@3334: sascha@3332: public void setOldmstid(Long oldmstid) { sascha@3332: this.oldmstid = oldmstid; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="ISTFESTSTOFF", nullable=false, precision=1, scale=0) sascha@3332: public boolean isIstfeststoff() { sascha@3332: return this.istfeststoff; sascha@3332: } sascha@3334: sascha@3332: public void setIstfeststoff(boolean istfeststoff) { sascha@3332: this.istfeststoff = istfeststoff; sascha@3332: } sascha@3332: sascha@3332: @OneToMany(fetch=FetchType.LAZY, mappedBy="station") sascha@3332: public Set getSohltests() { sascha@3332: return this.sohltests; sascha@3332: } sascha@3334: sascha@3332: public void setSohltests(Set sohltests) { sascha@3332: this.sohltests = sohltests; sascha@3332: } sascha@3332: sascha@3332: @OneToMany(fetch=FetchType.LAZY, mappedBy="station") sascha@3332: public Set getHpeilungs() { sascha@3332: return this.hpeilungs; sascha@3332: } sascha@3334: sascha@3332: public void setHpeilungs(Set hpeilungs) { sascha@3332: this.hpeilungs = hpeilungs; sascha@3332: } sascha@3332: sascha@3332: @OneToMany(fetch=FetchType.LAZY, mappedBy="station") sascha@3332: public Set getMpeilungs() { sascha@3332: return this.mpeilungs; sascha@3332: } sascha@3334: sascha@3332: public void setMpeilungs(Set mpeilungs) { sascha@3332: this.mpeilungs = mpeilungs; sascha@3332: } sascha@3332: sascha@3332: @OneToMany(fetch=FetchType.LAZY, mappedBy="station") sascha@3332: public Set getMessungs() { sascha@3332: return this.messungs; sascha@3332: } sascha@3334: sascha@3332: public void setMessungs(Set messungs) { sascha@3332: this.messungs = messungs; sascha@3332: } sascha@3332: }