Mercurial > dive4elements > river
diff flys-backend/src/main/java/de/intevation/seddb/model/Bild.java @ 3689:c938e568c4a2 2.9
merged flys-backend/2.9
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:44 +0200 |
parents | 2ae732e2c65c |
children | 18619c1e7c2a |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-backend/src/main/java/de/intevation/seddb/model/Bild.java Fri Sep 28 12:14:44 2012 +0200 @@ -0,0 +1,194 @@ +package de.intevation.seddb.model; +// Generated 14.06.2012 11:30:57 by Hibernate Tools 3.4.0.CR1 + + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.FetchType; +import javax.persistence.Id; +import javax.persistence.JoinColumn; +import javax.persistence.ManyToOne; +import javax.persistence.Table; + +/** + * Bild generated by hbm2java + */ +@Entity +@Table(name="BILD" + ,schema="SEDDB" +) +public class Bild implements java.io.Serializable { + + + private long bildid; + private Zzthema zzthema; + private Sohltest sohltest; + private int lfdnr; + private boolean istdigital; + private String pfad; + private String standort; + private String medium; + private String medpfad; + private String bemerkung; + private String typklein; + private String typmittel; + private String typgross; + + public Bild() { + } + + public Bild(long bildid, Zzthema zzthema, Sohltest sohltest, int lfdnr, boolean istdigital) { + this.bildid = bildid; + this.zzthema = zzthema; + this.sohltest = sohltest; + this.lfdnr = lfdnr; + this.istdigital = istdigital; + } + public Bild(long bildid, Zzthema zzthema, Sohltest sohltest, int lfdnr, boolean istdigital, String pfad, String standort, String medium, String medpfad, String bemerkung, String typklein, String typmittel, String typgross) { + this.bildid = bildid; + this.zzthema = zzthema; + this.sohltest = sohltest; + this.lfdnr = lfdnr; + this.istdigital = istdigital; + this.pfad = pfad; + this.standort = standort; + this.medium = medium; + this.medpfad = medpfad; + this.bemerkung = bemerkung; + this.typklein = typklein; + this.typmittel = typmittel; + this.typgross = typgross; + } + + @Id + + + @Column(name="BILDID", unique=true, nullable=false, precision=11, scale=0) + public long getBildid() { + return this.bildid; + } + + public void setBildid(long bildid) { + this.bildid = bildid; + } + +@ManyToOne(fetch=FetchType.LAZY) + @JoinColumn(name="THEMAID", nullable=false) + public Zzthema getZzthema() { + return this.zzthema; + } + + public void setZzthema(Zzthema zzthema) { + this.zzthema = zzthema; + } + +@ManyToOne(fetch=FetchType.LAZY) + @JoinColumn(name="SOHLTESTID", nullable=false) + public Sohltest getSohltest() { + return this.sohltest; + } + + public void setSohltest(Sohltest sohltest) { + this.sohltest = sohltest; + } + + + @Column(name="LFDNR", nullable=false, precision=5, scale=0) + public int getLfdnr() { + return this.lfdnr; + } + + public void setLfdnr(int lfdnr) { + this.lfdnr = lfdnr; + } + + + @Column(name="ISTDIGITAL", nullable=false, precision=1, scale=0) + public boolean isIstdigital() { + return this.istdigital; + } + + public void setIstdigital(boolean istdigital) { + this.istdigital = istdigital; + } + + + @Column(name="PFAD", length=512) + public String getPfad() { + return this.pfad; + } + + public void setPfad(String pfad) { + this.pfad = pfad; + } + + + @Column(name="STANDORT", length=50) + public String getStandort() { + return this.standort; + } + + public void setStandort(String standort) { + this.standort = standort; + } + + + @Column(name="MEDIUM", length=50) + public String getMedium() { + return this.medium; + } + + public void setMedium(String medium) { + this.medium = medium; + } + + + @Column(name="MEDPFAD", length=50) + public String getMedpfad() { + return this.medpfad; + } + + public void setMedpfad(String medpfad) { + this.medpfad = medpfad; + } + + + @Column(name="BEMERKUNG", length=240) + public String getBemerkung() { + return this.bemerkung; + } + + public void setBemerkung(String bemerkung) { + this.bemerkung = bemerkung; + } + + + @Column(name="TYPKLEIN", length=8) + public String getTypklein() { + return this.typklein; + } + + public void setTypklein(String typklein) { + this.typklein = typklein; + } + + + @Column(name="TYPMITTEL", length=8) + public String getTypmittel() { + return this.typmittel; + } + + public void setTypmittel(String typmittel) { + this.typmittel = typmittel; + } + + + @Column(name="TYPGROSS", length=8) + public String getTypgross() { + return this.typgross; + } + + public void setTypgross(String typgross) { + this.typgross = typgross; + } +}