diff src/main/java/de/intevation/lada/model/land/Ortszuordnung.java @ 1097:186d602e031a

Merged branch schema-update into default.
author Tom Gottfried <tom@intevation.de>
date Fri, 14 Oct 2016 18:17:42 +0200
parents
children f84b4fb82061
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/de/intevation/lada/model/land/Ortszuordnung.java	Fri Oct 14 18:17:42 2016 +0200
@@ -0,0 +1,155 @@
+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.JoinColumn;
+import javax.persistence.OneToOne;
+import javax.persistence.Transient;
+
+
+/**
+ * The persistent class for the ortszuordnung database table.
+ * 
+ */
+@Entity
+public class Ortszuordnung implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy=GenerationType.IDENTITY)
+    private Integer id;
+
+    @Column(name="letzte_aenderung")
+    private Timestamp letzteAenderung;
+
+    @Column(name="ort_id")
+    private Long ortId;
+
+    @Column(name="ortszuordnung_typ")
+    private String ortszuordnungTyp;
+
+    private String ortszusatztext;
+
+    @Column(name="probe_id")
+    private Integer probeId;
+
+    @Column(name="tree_modified")
+    private Timestamp treeModified;
+
+    @OneToOne
+    @JoinColumn(name="probe_id", insertable=false, updatable=false)
+    private Probe probe;
+
+    @Transient
+    private boolean owner;
+
+    @Transient
+    private boolean readonly;
+
+    @Transient
+    private Timestamp parentModified;
+
+    public Ortszuordnung() {
+    }
+
+    public Integer getId() {
+        return this.id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public Timestamp getLetzteAenderung() {
+        return this.letzteAenderung;
+    }
+
+    public void setLetzteAenderung(Timestamp letzteAenderung) {
+        this.letzteAenderung = letzteAenderung;
+    }
+
+    public Long getOrtId() {
+        return this.ortId;
+    }
+
+    public void setOrtId(Long ortId) {
+        this.ortId = ortId;
+    }
+
+    public String getOrtszuordnungTyp() {
+        return this.ortszuordnungTyp;
+    }
+
+    public void setOrtszuordnungTyp(String ortszuordnungTyp) {
+        this.ortszuordnungTyp = ortszuordnungTyp;
+    }
+
+    public String getOrtszusatztext() {
+        return this.ortszusatztext;
+    }
+
+    public void setOrtszusatztext(String ortszusatztext) {
+        this.ortszusatztext = ortszusatztext;
+    }
+
+    public Integer getProbeId() {
+        return this.probeId;
+    }
+
+    public void setProbeId(Integer probeId) {
+        this.probeId = probeId;
+    }
+
+    public Timestamp getTreeModified() {
+        return this.treeModified;
+    }
+
+    public void setTreeModified(Timestamp treeModified) {
+        this.treeModified = treeModified;
+    }
+
+    /**
+     * @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;
+    }
+
+    public Timestamp getParentModified() {
+        if (this.parentModified == null && this.probe != null) {
+            return this.probe.getTreeModified();
+        }
+        return this.parentModified;
+    }
+
+    public void setParentModified(Timestamp parentModified) {
+        this.parentModified = parentModified;
+    }
+}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)