diff src/main/java/de/intevation/lada/model/land/Messung.java @ 1028:1c41c7b8f7c2 schema-update

Updated server application to new database model. THIS IS STILL WIP!!!
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 08 Jul 2016 15:32:36 +0200
parents
children 812e0cace5ba
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/de/intevation/lada/model/land/Messung.java	Fri Jul 08 15:32:36 2016 +0200
@@ -0,0 +1,221 @@
+package de.intevation.lada.model.land;
+
+import java.io.Serializable;
+import java.sql.Timestamp;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.Transient;
+
+
+/**
+ * The persistent class for the messung database table.
+ * 
+ */
+@Entity
+public class Messung implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy=GenerationType.IDENTITY)
+    private Integer id;
+
+    private Boolean fertig;
+
+    private Boolean geplant;
+
+    @Column(name="id_alt")
+    private Integer idAlt;
+
+    @Column(name="letzte_aenderung")
+    private Timestamp letzteAenderung;
+
+    private Integer messdauer;
+
+    private Timestamp messzeitpunkt;
+
+    @Column(name="mmt_id")
+    private String mmtId;
+
+    @Column(name="nebenproben_nr")
+    private String nebenprobenNr;
+
+    @Column(name="probe_id")
+    private Integer probeId;
+
+    private Integer status;
+
+    @Column(name="tree_modified")
+    private Timestamp treeModified;
+
+    @Transient
+    private Boolean statusEdit;
+
+    @Transient
+    private Timestamp parentModified;
+
+    @Transient
+    private boolean owner;
+
+    @Transient
+    private boolean readonly;
+
+    public Messung() {
+    }
+
+    public Integer getId() {
+        return this.id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public Boolean getFertig() {
+        return this.fertig;
+    }
+
+    public void setFertig(Boolean fertig) {
+        this.fertig = fertig;
+    }
+
+    public Boolean getGeplant() {
+        return this.geplant;
+    }
+
+    public void setGeplant(Boolean geplant) {
+        this.geplant = geplant;
+    }
+
+    public Integer getIdAlt() {
+        return this.idAlt;
+    }
+
+    public void setIdAlt(Integer idAlt) {
+        this.idAlt = idAlt;
+    }
+
+    public Timestamp getLetzteAenderung() {
+        return this.letzteAenderung;
+    }
+
+    public void setLetzteAenderung(Timestamp letzteAenderung) {
+        this.letzteAenderung = letzteAenderung;
+    }
+
+    public Integer getMessdauer() {
+        return this.messdauer;
+    }
+
+    public void setMessdauer(Integer messdauer) {
+        this.messdauer = messdauer;
+    }
+
+    public Timestamp getMesszeitpunkt() {
+        return this.messzeitpunkt;
+    }
+
+    public void setMesszeitpunkt(Timestamp messzeitpunkt) {
+        this.messzeitpunkt = messzeitpunkt;
+    }
+
+    public String getMmtId() {
+        return this.mmtId;
+    }
+
+    public void setMmtId(String mmtId) {
+        this.mmtId = mmtId;
+    }
+
+    public String getNebenprobenNr() {
+        return this.nebenprobenNr;
+    }
+
+    public void setNebenprobenNr(String nebenprobenNr) {
+        this.nebenprobenNr = nebenprobenNr;
+    }
+
+    public Integer getProbeId() {
+        return this.probeId;
+    }
+
+    public void setProbeId(Integer probeId) {
+        this.probeId = probeId;
+    }
+
+    public Integer getStatus() {
+        return this.status;
+    }
+
+    public void setStatus(Integer status) {
+        this.status = status;
+    }
+
+    public Timestamp getTreeModified() {
+        return this.treeModified;
+    }
+
+    public void setTreeModified(Timestamp treeModified) {
+        this.treeModified = treeModified;
+    }
+
+    /**
+     * @return the statusEdit
+     */
+    public Boolean getStatusEdit() {
+        return statusEdit;
+    }
+
+    /**
+     * @param statusEdit the statusEdit to set
+     */
+    public void setStatusEdit(Boolean statusEdit) {
+        this.statusEdit = statusEdit;
+    }
+
+    /**
+     * @return the parentModified
+     */
+    public Timestamp getParentModified() {
+        return parentModified;
+    }
+
+    /**
+     * @param parentModified the parentModified to set
+     */
+    public void setParentModified(Timestamp parentModified) {
+        this.parentModified = parentModified;
+    }
+
+    /**
+     * @return the owner
+     */
+    public boolean isOwner() {
+        return owner;
+    }
+
+    /**
+     * @param owner the owner to set
+     */
+    public void setOwner(boolean owner) {
+        this.owner = owner;
+    }
+
+    /**
+     * @return the readonly
+     */
+    public boolean isReadonly() {
+        return readonly;
+    }
+
+    /**
+     * @param readonly the readonly to set
+     */
+    public void setReadonly(boolean readonly) {
+        this.readonly = readonly;
+    }
+
+}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)