Mercurial > lada > lada-server
changeset 28:0a3b95d7bf63
Removed old files.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 08 May 2013 13:47:25 +0200 (2013-05-08) |
parents | 3fced8e2a030 |
children | c5930d01e0ab |
files | src/main/java/de/intevation/model/LKommentarP.java src/main/java/de/intevation/model/LKommentarPPK.java |
diffstat | 2 files changed, 0 insertions(+), 133 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/intevation/model/LKommentarP.java Wed May 08 13:46:48 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,76 +0,0 @@ -package de.intevation.model; - -import java.io.Serializable; -import javax.persistence.*; -import java.sql.Timestamp; - - -/** - * The persistent class for the l_kommentar_p database table. - * - */ -@Entity -@Table(name="l_kommentar_p") -public class LKommentarP implements Serializable { - private static final long serialVersionUID = 1L; - private LKommentarPPK id; - private String erzeuger; - private Timestamp kDatum; - private String kText; - private LProbe LProbe; - - public LKommentarP() { - } - - - @EmbeddedId - public LKommentarPPK getId() { - return this.id; - } - - public void setId(LKommentarPPK id) { - this.id = id; - } - - - public String getErzeuger() { - return this.erzeuger; - } - - public void setErzeuger(String erzeuger) { - this.erzeuger = erzeuger; - } - - - @Column(name="k_datum") - public Timestamp getKDatum() { - return this.kDatum; - } - - public void setKDatum(Timestamp kDatum) { - this.kDatum = kDatum; - } - - - @Column(name="k_text") - public String getKText() { - return this.kText; - } - - public void setKText(String kText) { - this.kText = kText; - } - - - //bi-directional many-to-one association to LProbe - @ManyToOne - @JoinColumn(name="probe_id", insertable=false, updatable=false) - public LProbe getLProbe() { - return this.LProbe; - } - - public void setLProbe(LProbe LProbe) { - this.LProbe = LProbe; - } - -} \ No newline at end of file
--- a/src/main/java/de/intevation/model/LKommentarPPK.java Wed May 08 13:46:48 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,57 +0,0 @@ -package de.intevation.model; - -import java.io.Serializable; -import javax.persistence.*; - -/** - * The primary key class for the l_kommentar_p database table. - * - */ -@Embeddable -public class LKommentarPPK implements Serializable { - //default serial version id, required for serializable classes. - private static final long serialVersionUID = 1L; - private String probeId; - private Integer kId; - - public LKommentarPPK() { - } - - @Column(name="probe_id") - public String getProbeId() { - return this.probeId; - } - public void setProbeId(String probeId) { - this.probeId = probeId; - } - - @Column(name="k_id") - public Integer getKId() { - return this.kId; - } - public void setKId(Integer kId) { - this.kId = kId; - } - - public boolean equals(Object other) { - if (this == other) { - return true; - } - if (!(other instanceof LKommentarPPK)) { - return false; - } - LKommentarPPK castOther = (LKommentarPPK)other; - return - this.probeId.equals(castOther.probeId) - && this.kId.equals(castOther.kId); - } - - public int hashCode() { - final int prime = 31; - int hash = 17; - hash = hash * prime + this.probeId.hashCode(); - hash = hash * prime + this.kId.hashCode(); - - return hash; - } -} \ No newline at end of file