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.OneToMany; sascha@3332: import javax.persistence.Table; sascha@3332: import javax.persistence.UniqueConstraint; sascha@3332: sascha@3332: /** sascha@3332: * Gewaesser generated by hbm2java sascha@3332: */ sascha@3332: @Entity sascha@3332: @Table(name="GEWAESSER" sascha@3332: ,schema="SEDDB" sascha@3334: , uniqueConstraints = @UniqueConstraint(columnNames="NAME") sascha@3332: ) sascha@3332: public class Gewaesser implements java.io.Serializable { sascha@3332: sascha@3332: sascha@3332: private long gewaesserid; sascha@3332: private String name; sascha@3332: private String kennung; sascha@3332: private BigDecimal laenge; sascha@3332: private BigDecimal einzugsgebiet; sascha@3332: private String bemerkung; sascha@3332: private Set bezugspegels = new HashSet(0); sascha@3332: private Set stations = new HashSet(0); sascha@3332: sascha@3332: public Gewaesser() { sascha@3332: } sascha@3332: sascha@3332: public Gewaesser(long gewaesserid, String name) { sascha@3332: this.gewaesserid = gewaesserid; sascha@3332: this.name = name; sascha@3332: } sascha@3332: public Gewaesser(long gewaesserid, String name, String kennung, BigDecimal laenge, BigDecimal einzugsgebiet, String bemerkung, Set bezugspegels, Set stations) { sascha@3332: this.gewaesserid = gewaesserid; sascha@3332: this.name = name; sascha@3332: this.kennung = kennung; sascha@3332: this.laenge = laenge; sascha@3332: this.einzugsgebiet = einzugsgebiet; sascha@3332: this.bemerkung = bemerkung; sascha@3332: this.bezugspegels = bezugspegels; sascha@3332: this.stations = stations; sascha@3332: } sascha@3332: sascha@3334: @Id sascha@3334: sascha@3334: sascha@3332: @Column(name="GEWAESSERID", unique=true, nullable=false, precision=11, scale=0) sascha@3332: public long getGewaesserid() { sascha@3332: return this.gewaesserid; sascha@3332: } sascha@3334: sascha@3332: public void setGewaesserid(long gewaesserid) { sascha@3332: this.gewaesserid = gewaesserid; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="NAME", unique=true, nullable=false, length=20) 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="KENNUNG", length=11) sascha@3332: public String getKennung() { sascha@3332: return this.kennung; sascha@3332: } sascha@3334: sascha@3332: public void setKennung(String kennung) { sascha@3332: this.kennung = kennung; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="LAENGE", precision=7, scale=3) sascha@3332: public BigDecimal getLaenge() { sascha@3332: return this.laenge; sascha@3332: } sascha@3334: sascha@3332: public void setLaenge(BigDecimal laenge) { sascha@3332: this.laenge = laenge; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="EINZUGSGEBIET", precision=10) sascha@3332: public BigDecimal getEinzugsgebiet() { sascha@3332: return this.einzugsgebiet; sascha@3332: } sascha@3334: sascha@3332: public void setEinzugsgebiet(BigDecimal einzugsgebiet) { sascha@3332: this.einzugsgebiet = einzugsgebiet; 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@3332: @OneToMany(fetch=FetchType.LAZY, mappedBy="gewaesser") sascha@3332: public Set getBezugspegels() { sascha@3332: return this.bezugspegels; sascha@3332: } sascha@3334: sascha@3332: public void setBezugspegels(Set bezugspegels) { sascha@3332: this.bezugspegels = bezugspegels; sascha@3332: } sascha@3332: sascha@3332: @OneToMany(fetch=FetchType.LAZY, mappedBy="gewaesser") sascha@3332: public Set getStations() { sascha@3332: return this.stations; sascha@3332: } sascha@3334: sascha@3332: public void setStations(Set stations) { sascha@3332: this.stations = stations; sascha@3332: } sascha@3332: sascha@3332: sascha@3332: sascha@3332: sascha@3332: } sascha@3332: sascha@3332: