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.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: 
sascha@3332: /**
sascha@3332:  * Zzsondierungart generated by hbm2java
sascha@3332:  */
sascha@3332: @Entity
sascha@3332: @Table(name="ZZSONDIERUNGART"
sascha@3332:     ,schema="SEDDB"
sascha@3332: )
sascha@3332: public class Zzsondierungart  implements java.io.Serializable {
sascha@3332: 
sascha@3332: 
sascha@3332:      private long sondierungartid;
sascha@3332:      private String name;
sascha@3332:      private boolean istaktiv;
sascha@3332:      private String bemerkung;
sascha@3332:      private Set<Sohltest> sohltests = new HashSet<Sohltest>(0);
sascha@3332: 
sascha@3332:     public Zzsondierungart() {
sascha@3332:     }
sascha@3332: 
sascha@3332:     public Zzsondierungart(long sondierungartid, String name, boolean istaktiv) {
sascha@3332:         this.sondierungartid = sondierungartid;
sascha@3332:         this.name = name;
sascha@3332:         this.istaktiv = istaktiv;
sascha@3332:     }
sascha@3332:     public Zzsondierungart(long sondierungartid, String name, boolean istaktiv, String bemerkung, Set<Sohltest> sohltests) {
sascha@3332:        this.sondierungartid = sondierungartid;
sascha@3332:        this.name = name;
sascha@3332:        this.istaktiv = istaktiv;
sascha@3332:        this.bemerkung = bemerkung;
sascha@3332:        this.sohltests = sohltests;
sascha@3332:     }
sascha@3332: 
sascha@3334:      @Id
sascha@3334: 
sascha@3334: 
sascha@3332:     @Column(name="SONDIERUNGARTID", unique=true, nullable=false, precision=11, scale=0)
sascha@3332:     public long getSondierungartid() {
sascha@3332:         return this.sondierungartid;
sascha@3332:     }
sascha@3334: 
sascha@3332:     public void setSondierungartid(long sondierungartid) {
sascha@3332:         this.sondierungartid = sondierungartid;
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="ISTAKTIV", nullable=false, precision=1, scale=0)
sascha@3332:     public boolean isIstaktiv() {
sascha@3332:         return this.istaktiv;
sascha@3332:     }
sascha@3334: 
sascha@3332:     public void setIstaktiv(boolean istaktiv) {
sascha@3332:         this.istaktiv = istaktiv;
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="zzsondierungart")
sascha@3332:     public Set<Sohltest> getSohltests() {
sascha@3332:         return this.sohltests;
sascha@3332:     }
sascha@3334: 
sascha@3332:     public void setSohltests(Set<Sohltest> sohltests) {
sascha@3332:         this.sohltests = sohltests;
sascha@3332:     }
sascha@3332: }