view backend/src/main/java/org/dive4elements/river/seddb/model/Probebild.java @ 6955:94cb1845c667

(issue1452) Coalesce to zero to avoid NaN arithmetic.
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 30 Aug 2013 15:45:14 +0200
parents 4c3ccf2b0304
children
line wrap: on
line source
/* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde
 * Software engineering by Intevation GmbH
 *
 * This file is Free Software under the GNU AGPL (>=v3)
 * and comes with ABSOLUTELY NO WARRANTY! Check out the
 * documentation coming with Dive4Elements River for details.
 */

package org.dive4elements.river.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;

/**
 * Probebild generated by hbm2java
 */
@Entity
@Table(name="PROBEBILD"
    ,schema="SEDDB"
)
public class Probebild  implements java.io.Serializable {


     private long probebildid;
     private Zzthema zzthema;
     private Sohlprobe sohlprobe;
     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 Probebild() {
    }

    public Probebild(long probebildid, Zzthema zzthema, Sohlprobe sohlprobe, int lfdnr, boolean istdigital) {
        this.probebildid = probebildid;
        this.zzthema = zzthema;
        this.sohlprobe = sohlprobe;
        this.lfdnr = lfdnr;
        this.istdigital = istdigital;
    }
    public Probebild(long probebildid, Zzthema zzthema, Sohlprobe sohlprobe, int lfdnr, boolean istdigital, String pfad, String standort, String medium, String medpfad, String bemerkung, String typklein, String typmittel, String typgross) {
       this.probebildid = probebildid;
       this.zzthema = zzthema;
       this.sohlprobe = sohlprobe;
       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="PROBEBILDID", unique=true, nullable=false, precision=11, scale=0)
    public long getProbebildid() {
        return this.probebildid;
    }

    public void setProbebildid(long probebildid) {
        this.probebildid = probebildid;
    }

@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="SOHLPROBEID", nullable=false)
    public Sohlprobe getSohlprobe() {
        return this.sohlprobe;
    }

    public void setSohlprobe(Sohlprobe sohlprobe) {
        this.sohlprobe = sohlprobe;
    }


    @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;
    }
}

http://dive4elements.wald.intevation.org