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: * Zzthema generated by hbm2java sascha@3332: */ sascha@3332: @Entity sascha@3332: @Table(name="ZZTHEMA" sascha@3332: ,schema="SEDDB" sascha@3332: ) sascha@3332: public class Zzthema implements java.io.Serializable { sascha@3332: sascha@3332: sascha@3332: private long themaid; sascha@3332: private String name; sascha@3332: private boolean istaktiv; sascha@3332: private String bemerkung; sascha@3332: private Set bilds = new HashSet(0); sascha@3332: private Set probebilds = new HashSet(0); sascha@3332: sascha@3332: public Zzthema() { sascha@3332: } sascha@3332: sascha@3334: sascha@3332: public Zzthema(long themaid, String name, boolean istaktiv) { sascha@3332: this.themaid = themaid; sascha@3332: this.name = name; sascha@3332: this.istaktiv = istaktiv; sascha@3332: } sascha@3332: public Zzthema(long themaid, String name, boolean istaktiv, String bemerkung, Set bilds, Set probebilds) { sascha@3332: this.themaid = themaid; sascha@3332: this.name = name; sascha@3332: this.istaktiv = istaktiv; sascha@3332: this.bemerkung = bemerkung; sascha@3332: this.bilds = bilds; sascha@3332: this.probebilds = probebilds; sascha@3332: } sascha@3332: sascha@3334: @Id sascha@3334: sascha@3334: sascha@3332: @Column(name="THEMAID", unique=true, nullable=false, precision=11, scale=0) sascha@3332: public long getThemaid() { sascha@3332: return this.themaid; sascha@3332: } sascha@3334: sascha@3332: public void setThemaid(long themaid) { sascha@3332: this.themaid = themaid; 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="zzthema") sascha@3332: public Set getBilds() { sascha@3332: return this.bilds; sascha@3332: } sascha@3334: sascha@3332: public void setBilds(Set bilds) { sascha@3332: this.bilds = bilds; sascha@3332: } sascha@3332: sascha@3332: @OneToMany(fetch=FetchType.LAZY, mappedBy="zzthema") 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: }