changeset 158:034db67bc1e8

New model for l_kommentar_m.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 14 Jun 2013 15:17:59 +0200
parents 42e0085692df
children 32ccc25c5f1e
files src/main/java/de/intevation/lada/model/LKommentarM.java src/main/java/de/intevation/lada/model/LKommentarMId.java
diffstat 2 files changed, 194 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/de/intevation/lada/model/LKommentarM.java	Fri Jun 14 15:17:59 2013 +0200
@@ -0,0 +1,114 @@
+package de.intevation.lada.model;
+
+// Generated 21.05.2013 16:58:30 by Hibernate Tools 3.4.0.CR1
+
+import java.util.Date;
+import javax.persistence.AttributeOverride;
+import javax.persistence.AttributeOverrides;
+import javax.persistence.Column;
+import javax.persistence.EmbeddedId;
+import javax.persistence.Entity;
+import javax.persistence.FetchType;
+import javax.persistence.JoinColumn;
+import javax.persistence.JoinColumns;
+import javax.persistence.ManyToOne;
+import javax.persistence.Table;
+import javax.persistence.Temporal;
+import javax.persistence.TemporalType;
+
+/**
+ * LKommentarM generated by hbm2java
+ */
+@Entity
+@Table(name = "l_kommentar_m", schema = "public")
+public class LKommentarM implements java.io.Serializable {
+
+	private LKommentarMId id;
+	private String probeId;
+	private Integer messungsId;
+	private String erzeuger;
+	private Date KDatum;
+	private String KText;
+
+	public LKommentarM() {
+	}
+
+	public LKommentarM(LKommentarMId id, String probeId,
+	    Integer messungsId, String erzeuger, Date KDatum) {
+		this.id = id;
+		this.setProbeId(probeId);
+		this.messungsId = messungsId;
+		this.erzeuger = erzeuger;
+		this.KDatum = KDatum;
+	}
+
+	public LKommentarM(LKommentarMId id, String probeId,
+	    Integer messungsId, String erzeuger, Date KDatum, String KText) {
+		this.id = id;
+		this.probeId = probeId;
+		this.messungsId = messungsId;
+		this.erzeuger = erzeuger;
+		this.KDatum = KDatum;
+		this.KText = KText;
+	}
+
+	@EmbeddedId
+	@AttributeOverrides({
+			@AttributeOverride(name = "probeId", column = @Column(name = "probe_id", nullable = false, length = 20)),
+			@AttributeOverride(name = "messungsId", column = @Column(name = "messungs_id", nullable = false)),
+			@AttributeOverride(name = "KId", column = @Column(name = "k_id", nullable = false)) })
+	public LKommentarMId getId() {
+		return this.id;
+	}
+
+	public void setId(LKommentarMId id) {
+		this.id = id;
+	}
+
+	@Column(name = "probe_id", nullable = false, insertable = false, updatable = false)
+	public String getProbeId() {
+        return probeId;
+    }
+
+    public void setProbeId(String probeId) {
+        this.probeId = probeId;
+    }
+
+    @Column(name = "messungs_id", nullable = false, insertable = false, updatable = false)
+	public Integer getMessungsId() {
+		return this.messungsId;
+	}
+
+	public void setMessungsId(Integer messungsId) {
+		this.messungsId = messungsId;
+	}
+
+	@Column(name = "erzeuger", nullable = false, length = 5)
+	public String getErzeuger() {
+		return this.erzeuger;
+	}
+
+	public void setErzeuger(String erzeuger) {
+		this.erzeuger = erzeuger;
+	}
+
+	@Temporal(TemporalType.TIMESTAMP)
+	@Column(name = "k_datum", nullable = false, length = 35)
+	public Date getKDatum() {
+		return this.KDatum;
+	}
+
+	public void setKDatum(Date KDatum) {
+		this.KDatum = KDatum;
+	}
+
+	@Column(name = "k_text", length = 1024)
+	public String getKText() {
+		return this.KText;
+	}
+
+	public void setKText(String KText) {
+		this.KText = KText;
+	}
+
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/de/intevation/lada/model/LKommentarMId.java	Fri Jun 14 15:17:59 2013 +0200
@@ -0,0 +1,80 @@
+package de.intevation.lada.model;
+
+// Generated 21.05.2013 16:58:30 by Hibernate Tools 3.4.0.CR1
+
+import javax.persistence.Column;
+import javax.persistence.Embeddable;
+
+/**
+ * LKommentarMId generated by hbm2java
+ */
+@Embeddable
+public class LKommentarMId implements java.io.Serializable {
+
+	private String probeId;
+	private short messungsId;
+	private int KId;
+
+	public LKommentarMId() {
+	}
+
+	public LKommentarMId(String probeId, short messungsId, int KId) {
+		this.probeId = probeId;
+		this.messungsId = messungsId;
+		this.KId = KId;
+	}
+
+	@Column(name = "probe_id", nullable = false, length = 20)
+	public String getProbeId() {
+		return this.probeId;
+	}
+
+	public void setProbeId(String probeId) {
+		this.probeId = probeId;
+	}
+
+	@Column(name = "messungs_id", nullable = false)
+	public short getMessungsId() {
+		return this.messungsId;
+	}
+
+	public void setMessungsId(short messungsId) {
+		this.messungsId = messungsId;
+	}
+
+	@Column(name = "k_id", nullable = false)
+	public int getKId() {
+		return this.KId;
+	}
+
+	public void setKId(int KId) {
+		this.KId = KId;
+	}
+
+	public boolean equals(Object other) {
+		if ((this == other))
+			return true;
+		if ((other == null))
+			return false;
+		if (!(other instanceof LKommentarMId))
+			return false;
+		LKommentarMId castOther = (LKommentarMId) other;
+
+		return ((this.getProbeId() == castOther.getProbeId()) || (this
+				.getProbeId() != null && castOther.getProbeId() != null && this
+				.getProbeId().equals(castOther.getProbeId())))
+				&& (this.getMessungsId() == castOther.getMessungsId())
+				&& (this.getKId() == castOther.getKId());
+	}
+
+	public int hashCode() {
+		int result = 17;
+
+		result = 37 * result
+				+ (getProbeId() == null ? 0 : this.getProbeId().hashCode());
+		result = 37 * result + this.getMessungsId();
+		result = 37 * result + this.getKId();
+		return result;
+	}
+
+}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)