changeset 144:462db3ebf80f

Added model for l_messwert and s_messgroesse.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 14 Jun 2013 10:35:33 +0200
parents d92ce2ad8c7d
children 738c139b6526
files src/main/java/de/intevation/lada/model/LMesswert.java src/main/java/de/intevation/lada/model/LMesswertId.java src/main/java/de/intevation/lada/model/SMessgroesse.java
diffstat 3 files changed, 380 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/LMesswert.java	Fri Jun 14 10:35:33 2013 +0200
@@ -0,0 +1,176 @@
+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;
+
+/**
+ * LMesswert generated by hbm2java
+ */
+@Entity
+@Table(name = "l_messwert", schema = "public")
+public class LMesswert implements java.io.Serializable {
+
+	private LMesswertId id;
+	private String probeId;
+	private Integer messungsId;
+	private SMessEinheit SMessEinheit;
+	private SMessgroesse SMessgroesse;
+	private String messwertNwg;
+	private float messwert;
+	private Float messfehler;
+	private Float nwgZuMesswert;
+	private Boolean grenzwertueberschreitung;
+	private Date letzteAenderung;
+
+	public LMesswert() {
+	}
+
+	public LMesswert(LMesswertId id, String probeId, Integer messungsId,
+	    SMessEinheit SMessEinheit, SMessgroesse SMessgroesse, float messwert
+	) {
+		this.id = id;
+		this.probeId = probeId;
+		this.messungsId = messungsId;
+		this.SMessEinheit = SMessEinheit;
+		this.SMessgroesse = SMessgroesse;
+		this.messwert = messwert;
+	}
+
+	public LMesswert(LMesswertId id, String probeId, Integer messungsId,
+	    SMessEinheit SMessEinheit, SMessgroesse SMessgroesse, String messwertNwg,
+		float messwert, Float messfehler, Float nwgZuMesswert,
+		Boolean grenzwertueberschreitung, Date letzteAenderung
+	) {
+		this.id = id;
+		this.probeId = probeId;
+		this.messungsId = messungsId;
+		this.SMessEinheit = SMessEinheit;
+		this.SMessgroesse = SMessgroesse;
+		this.messwertNwg = messwertNwg;
+		this.messwert = messwert;
+		this.messfehler = messfehler;
+		this.nwgZuMesswert = nwgZuMesswert;
+		this.grenzwertueberschreitung = grenzwertueberschreitung;
+		this.letzteAenderung = letzteAenderung;
+	}
+
+	@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 = "messgroesseId", column = @Column(name = "messgroesse_id", nullable = false)) })
+	public LMesswertId getId() {
+		return this.id;
+	}
+
+	public void setId(LMesswertId id) {
+		this.id = id;
+	}
+
+	@Column(name = "probe_id", nullable = false, insertable = false, updatable = false)
+	public String getProbeId() {
+	    return this.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;
+	}
+	
+	@ManyToOne(fetch = FetchType.EAGER)
+	@JoinColumn(name = "meh_id", nullable = false)
+	public SMessEinheit getSMessEinheit() {
+		return this.SMessEinheit;
+	}
+
+	public void setSMessEinheit(SMessEinheit SMessEinheit) {
+		this.SMessEinheit = SMessEinheit;
+	}
+
+	@ManyToOne(fetch = FetchType.EAGER)
+	@JoinColumn(name = "messgroesse_id", nullable = false, insertable = false, updatable = false)
+	public SMessgroesse getSMessgroesse() {
+		return this.SMessgroesse;
+	}
+
+	public void setSMessgroesse(SMessgroesse SMessgroesse) {
+		this.SMessgroesse = SMessgroesse;
+	}
+
+	@Column(name = "messwert_nwg", length = 1)
+	public String getMesswertNwg() {
+		return this.messwertNwg;
+	}
+
+	public void setMesswertNwg(String messwertNwg) {
+		this.messwertNwg = messwertNwg;
+	}
+
+	@Column(name = "messwert", nullable = false, precision = 8, scale = 8)
+	public float getMesswert() {
+		return this.messwert;
+	}
+
+	public void setMesswert(float messwert) {
+		this.messwert = messwert;
+	}
+
+	@Column(name = "messfehler", precision = 8, scale = 8)
+	public Float getMessfehler() {
+		return this.messfehler;
+	}
+
+	public void setMessfehler(Float messfehler) {
+		this.messfehler = messfehler;
+	}
+
+	@Column(name = "nwg_zu_messwert", precision = 8, scale = 8)
+	public Float getNwgZuMesswert() {
+		return this.nwgZuMesswert;
+	}
+
+	public void setNwgZuMesswert(Float nwgZuMesswert) {
+		this.nwgZuMesswert = nwgZuMesswert;
+	}
+
+	@Column(name = "grenzwertueberschreitung")
+	public Boolean getGrenzwertueberschreitung() {
+		return this.grenzwertueberschreitung;
+	}
+
+	public void setGrenzwertueberschreitung(Boolean grenzwertueberschreitung) {
+		this.grenzwertueberschreitung = grenzwertueberschreitung;
+	}
+
+	@Temporal(TemporalType.TIMESTAMP)
+	@Column(name = "letzte_aenderung", length = 29)
+	public Date getLetzteAenderung() {
+		return this.letzteAenderung;
+	}
+
+	public void setLetzteAenderung(Date letzteAenderung) {
+		this.letzteAenderung = letzteAenderung;
+	}
+
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/de/intevation/lada/model/LMesswertId.java	Fri Jun 14 10:35:33 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;
+
+/**
+ * LMesswertId generated by hbm2java
+ */
+@Embeddable
+public class LMesswertId implements java.io.Serializable {
+
+	private String probeId;
+	private short messungsId;
+	private int messgroesseId;
+
+	public LMesswertId() {
+	}
+
+	public LMesswertId(String probeId, short messungsId, int messgroesseId) {
+		this.probeId = probeId;
+		this.messungsId = messungsId;
+		this.messgroesseId = messgroesseId;
+	}
+
+	@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 = "messgroesse_id", nullable = false)
+	public int getMessgroesseId() {
+		return this.messgroesseId;
+	}
+
+	public void setMessgroesseId(int messgroesseId) {
+		this.messgroesseId = messgroesseId;
+	}
+
+	public boolean equals(Object other) {
+		if ((this == other))
+			return true;
+		if ((other == null))
+			return false;
+		if (!(other instanceof LMesswertId))
+			return false;
+		LMesswertId castOther = (LMesswertId) other;
+
+		return ((this.getProbeId() == castOther.getProbeId()) || (this
+				.getProbeId() != null && castOther.getProbeId() != null && this
+				.getProbeId().equals(castOther.getProbeId())))
+				&& (this.getMessungsId() == castOther.getMessungsId())
+				&& (this.getMessgroesseId() == castOther.getMessgroesseId());
+	}
+
+	public int hashCode() {
+		int result = 17;
+
+		result = 37 * result
+				+ (getProbeId() == null ? 0 : this.getProbeId().hashCode());
+		result = 37 * result + this.getMessungsId();
+		result = 37 * result + this.getMessgroesseId();
+		return result;
+	}
+
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/de/intevation/lada/model/SMessgroesse.java	Fri Jun 14 10:35:33 2013 +0200
@@ -0,0 +1,124 @@
+package de.intevation.lada.model;
+
+// Generated 21.05.2013 16:58:30 by Hibernate Tools 3.4.0.CR1
+
+import java.util.HashSet;
+import java.util.Set;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.FetchType;
+import javax.persistence.Id;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+
+/**
+ * SMessgroesse generated by hbm2java
+ */
+@Entity
+@Table(name = "s_messgroesse", schema = "public")
+public class SMessgroesse implements java.io.Serializable {
+
+	private int messgroesseId;
+	private String beschreibung;
+	private String messgro0esse;
+	private String defaultFarbe;
+	private String idfNuklidKey;
+	private Character istLeitnuklid;
+	private Long eudfNuklidId;
+	private String kennungBvl;
+
+	public SMessgroesse() {
+	}
+
+	public SMessgroesse(int messgroesseId, String messgro0esse) {
+		this.messgroesseId = messgroesseId;
+		this.messgro0esse = messgro0esse;
+	}
+
+	public SMessgroesse(int messgroesseId, String beschreibung,
+			String messgro0esse, String defaultFarbe, String idfNuklidKey,
+			Character istLeitnuklid, Long eudfNuklidId, String kennungBvl) {
+		this.messgroesseId = messgroesseId;
+		this.beschreibung = beschreibung;
+		this.messgro0esse = messgro0esse;
+		this.defaultFarbe = defaultFarbe;
+		this.idfNuklidKey = idfNuklidKey;
+		this.istLeitnuklid = istLeitnuklid;
+		this.eudfNuklidId = eudfNuklidId;
+		this.kennungBvl = kennungBvl;
+	}
+
+	@Id
+	@Column(name = "messgroesse_id", unique = true, nullable = false)
+	public int getMessgroesseId() {
+		return this.messgroesseId;
+	}
+
+	public void setMessgroesseId(int messgroesseId) {
+		this.messgroesseId = messgroesseId;
+	}
+
+	@Column(name = "beschreibung", length = 300)
+	public String getBeschreibung() {
+		return this.beschreibung;
+	}
+
+	public void setBeschreibung(String beschreibung) {
+		this.beschreibung = beschreibung;
+	}
+
+	@Column(name = "messgro0esse", nullable = false, length = 50)
+	public String getMessgro0esse() {
+		return this.messgro0esse;
+	}
+
+	public void setMessgro0esse(String messgro0esse) {
+		this.messgro0esse = messgro0esse;
+	}
+
+	@Column(name = "default_farbe", length = 9)
+	public String getDefaultFarbe() {
+		return this.defaultFarbe;
+	}
+
+	public void setDefaultFarbe(String defaultFarbe) {
+		this.defaultFarbe = defaultFarbe;
+	}
+
+	@Column(name = "idf_nuklid_key", length = 6)
+	public String getIdfNuklidKey() {
+		return this.idfNuklidKey;
+	}
+
+	public void setIdfNuklidKey(String idfNuklidKey) {
+		this.idfNuklidKey = idfNuklidKey;
+	}
+
+	@Column(name = "ist_leitnuklid", length = 1)
+	public Character getIstLeitnuklid() {
+		return this.istLeitnuklid;
+	}
+
+	public void setIstLeitnuklid(Character istLeitnuklid) {
+		this.istLeitnuklid = istLeitnuklid;
+	}
+
+	@Column(name = "eudf_nuklid_id")
+	public Long getEudfNuklidId() {
+		return this.eudfNuklidId;
+	}
+
+	public void setEudfNuklidId(Long eudfNuklidId) {
+		this.eudfNuklidId = eudfNuklidId;
+	}
+
+	@Column(name = "kennung_bvl", length = 7)
+	public String getKennungBvl() {
+		return this.kennungBvl;
+	}
+
+	public void setKennungBvl(String kennungBvl) {
+		this.kennungBvl = kennungBvl;
+	}
+
+}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)