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.Date; 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.Temporal; sascha@3332: import javax.persistence.TemporalType; sascha@3332: sascha@3332: /** sascha@3332: * Sohlprobe generated by hbm2java sascha@3332: */ sascha@3332: @Entity sascha@3332: @Table(name="SOHLPROBE" sascha@3332: ,schema="SEDDB" sascha@3332: ) sascha@3332: public class Sohlprobe implements java.io.Serializable { sascha@3332: sascha@3332: sascha@3332: private long sohlprobeid; sascha@3332: private Zzprobenahmeart zzprobenahmeart; sascha@3332: private Sohltest sohltest; sascha@3332: private BigDecimal tiefevon; sascha@3332: private BigDecimal tiefebis; sascha@3332: private String beschreibung; sascha@3332: private Date lastupdated; sascha@3332: private Set probebilds = new HashSet(0); sascha@3332: private Set siebanalyses = new HashSet(0); sascha@3332: sascha@3332: public Sohlprobe() { sascha@3332: } sascha@3332: sascha@3332: public Sohlprobe(long sohlprobeid, Zzprobenahmeart zzprobenahmeart, Sohltest sohltest, Date lastupdated) { sascha@3332: this.sohlprobeid = sohlprobeid; sascha@3332: this.zzprobenahmeart = zzprobenahmeart; sascha@3332: this.sohltest = sohltest; sascha@3332: this.lastupdated = lastupdated; sascha@3332: } sascha@3332: public Sohlprobe(long sohlprobeid, Zzprobenahmeart zzprobenahmeart, Sohltest sohltest, BigDecimal tiefevon, BigDecimal tiefebis, String beschreibung, Date lastupdated, Set probebilds, Set siebanalyses) { sascha@3332: this.sohlprobeid = sohlprobeid; sascha@3332: this.zzprobenahmeart = zzprobenahmeart; sascha@3332: this.sohltest = sohltest; sascha@3332: this.tiefevon = tiefevon; sascha@3332: this.tiefebis = tiefebis; sascha@3332: this.beschreibung = beschreibung; sascha@3332: this.lastupdated = lastupdated; sascha@3332: this.probebilds = probebilds; sascha@3332: this.siebanalyses = siebanalyses; sascha@3332: } sascha@3332: sascha@3334: @Id sascha@3334: sascha@3334: sascha@3332: @Column(name="SOHLPROBEID", unique=true, nullable=false, precision=11, scale=0) sascha@3332: public long getSohlprobeid() { sascha@3332: return this.sohlprobeid; sascha@3332: } sascha@3334: sascha@3332: public void setSohlprobeid(long sohlprobeid) { sascha@3332: this.sohlprobeid = sohlprobeid; sascha@3332: } sascha@3332: sascha@3332: @ManyToOne(fetch=FetchType.LAZY) sascha@3332: @JoinColumn(name="PROBENAHMEARTID", nullable=false) sascha@3332: public Zzprobenahmeart getZzprobenahmeart() { sascha@3332: return this.zzprobenahmeart; sascha@3332: } sascha@3334: sascha@3332: public void setZzprobenahmeart(Zzprobenahmeart zzprobenahmeart) { sascha@3332: this.zzprobenahmeart = zzprobenahmeart; sascha@3332: } sascha@3332: sascha@3332: @ManyToOne(fetch=FetchType.LAZY) sascha@3332: @JoinColumn(name="SOHLTESTID", nullable=false) sascha@3332: public Sohltest getSohltest() { sascha@3332: return this.sohltest; sascha@3332: } sascha@3334: sascha@3332: public void setSohltest(Sohltest sohltest) { sascha@3332: this.sohltest = sohltest; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="TIEFEVON", precision=8, scale=3) sascha@3332: public BigDecimal getTiefevon() { sascha@3332: return this.tiefevon; sascha@3332: } sascha@3334: sascha@3332: public void setTiefevon(BigDecimal tiefevon) { sascha@3332: this.tiefevon = tiefevon; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="TIEFEBIS", precision=8, scale=3) sascha@3332: public BigDecimal getTiefebis() { sascha@3332: return this.tiefebis; sascha@3332: } sascha@3334: sascha@3332: public void setTiefebis(BigDecimal tiefebis) { sascha@3332: this.tiefebis = tiefebis; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="BESCHREIBUNG", length=1024) sascha@3332: public String getBeschreibung() { sascha@3332: return this.beschreibung; sascha@3332: } sascha@3334: sascha@3332: public void setBeschreibung(String beschreibung) { sascha@3332: this.beschreibung = beschreibung; sascha@3332: } sascha@3332: sascha@3332: @Temporal(TemporalType.DATE) sascha@3332: @Column(name="LASTUPDATED", nullable=false, length=7) sascha@3332: public Date getLastupdated() { sascha@3332: return this.lastupdated; sascha@3332: } sascha@3334: sascha@3332: public void setLastupdated(Date lastupdated) { sascha@3332: this.lastupdated = lastupdated; sascha@3332: } sascha@3332: sascha@3332: @OneToMany(fetch=FetchType.LAZY, mappedBy="sohlprobe") sascha@3332: public Set getProbebilds() { sascha@3332: return this.probebilds; sascha@3332: } sascha@3334: sascha@3332: public void setProbebilds(Set probebilds) { sascha@3332: this.probebilds = probebilds; sascha@3332: } sascha@3332: sascha@3332: @OneToMany(fetch=FetchType.LAZY, mappedBy="sohlprobe") sascha@3332: public Set getSiebanalyses() { sascha@3332: return this.siebanalyses; sascha@3332: } sascha@3334: sascha@3332: public void setSiebanalyses(Set siebanalyses) { sascha@3332: this.siebanalyses = siebanalyses; sascha@3332: } sascha@3332: sascha@3332: sascha@3332: sascha@3332: sascha@3332: } sascha@3332: sascha@3332: