# HG changeset patch # User Torsten Irländer # Date 1368013645 -7200 # Node ID 0a3b95d7bf63992340cdbf01ab8782764c9a8029 # Parent 3fced8e2a030970c364bcb2f83fbe386b7333bc3 Removed old files. diff -r 3fced8e2a030 -r 0a3b95d7bf63 src/main/java/de/intevation/model/LKommentarP.java --- 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 diff -r 3fced8e2a030 -r 0a3b95d7bf63 src/main/java/de/intevation/model/LKommentarPPK.java --- 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