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: * Gfaenger generated by hbm2java sascha@3332: */ sascha@3332: @Entity sascha@3332: @Table(name="GFAENGER" sascha@3332: ,schema="SEDDB" sascha@3334: , uniqueConstraints = @UniqueConstraint(columnNames="NAME") sascha@3332: ) sascha@3332: public class Gfaenger implements java.io.Serializable { sascha@3332: sascha@3332: sascha@3332: private long gfaengerid; sascha@3332: private boolean istaktiv; sascha@3332: private String name; sascha@3332: private BigDecimal breite; sascha@3332: private BigDecimal maschenweite; sascha@3332: private String bemerkung; sascha@3332: private Set messungs = new HashSet(0); sascha@3332: sascha@3332: public Gfaenger() { sascha@3332: } sascha@3332: sascha@3332: public Gfaenger(long gfaengerid, boolean istaktiv, String name, BigDecimal breite, BigDecimal maschenweite) { sascha@3332: this.gfaengerid = gfaengerid; sascha@3332: this.istaktiv = istaktiv; sascha@3332: this.name = name; sascha@3332: this.breite = breite; sascha@3332: this.maschenweite = maschenweite; sascha@3332: } sascha@3332: public Gfaenger(long gfaengerid, boolean istaktiv, String name, BigDecimal breite, BigDecimal maschenweite, String bemerkung, Set messungs) { sascha@3332: this.gfaengerid = gfaengerid; sascha@3332: this.istaktiv = istaktiv; sascha@3332: this.name = name; sascha@3332: this.breite = breite; sascha@3332: this.maschenweite = maschenweite; sascha@3332: this.bemerkung = bemerkung; sascha@3332: this.messungs = messungs; sascha@3332: } sascha@3332: sascha@3334: @Id sascha@3334: sascha@3334: sascha@3332: @Column(name="GFAENGERID", unique=true, nullable=false, precision=11, scale=0) sascha@3332: public long getGfaengerid() { sascha@3332: return this.gfaengerid; sascha@3332: } sascha@3334: sascha@3332: public void setGfaengerid(long gfaengerid) { sascha@3332: this.gfaengerid = gfaengerid; 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="NAME", unique=true, nullable=false, length=30) 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="BREITE", nullable=false, precision=6, scale=3) sascha@3332: public BigDecimal getBreite() { sascha@3332: return this.breite; sascha@3332: } sascha@3334: sascha@3332: public void setBreite(BigDecimal breite) { sascha@3332: this.breite = breite; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="MASCHENWEITE", nullable=false, precision=7, scale=4) sascha@3332: public BigDecimal getMaschenweite() { sascha@3332: return this.maschenweite; sascha@3332: } sascha@3334: sascha@3332: public void setMaschenweite(BigDecimal maschenweite) { sascha@3332: this.maschenweite = maschenweite; 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="gfaenger") 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: }