Mercurial > lada > lada-server
changeset 27:3fced8e2a030
Removed relations
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 08 May 2013 13:46:48 +0200 |
parents | 47728bab8cb1 |
children | 0a3b95d7bf63 |
files | src/main/java/de/intevation/model/LProbe.java src/main/resources/META-INF/persistence.xml |
diffstat | 2 files changed, 0 insertions(+), 29 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/intevation/model/LProbe.java Tue Apr 30 14:47:59 2013 +0200 +++ b/src/main/java/de/intevation/model/LProbe.java Wed May 08 13:46:48 2013 +0200 @@ -36,7 +36,6 @@ private Timestamp solldatumEnde; private Boolean test; private String umwId; - private List<LKommentarP> LKommentarPs; public LProbe() { } @@ -258,30 +257,4 @@ public void setUmwId(String umwId) { this.umwId = umwId; } - - - //bi-directional many-to-one association to LKommentarP - @OneToMany(mappedBy="LProbe", cascade={CascadeType.ALL}, fetch=FetchType.EAGER) - public List<LKommentarP> getLKommentarPs() { - return this.LKommentarPs; - } - - public void setLKommentarPs(List<LKommentarP> LKommentarPs) { - this.LKommentarPs = LKommentarPs; - } - - public LKommentarP addLKommentarP(LKommentarP LKommentarP) { - getLKommentarPs().add(LKommentarP); - LKommentarP.setLProbe(this); - - return LKommentarP; - } - - public LKommentarP removeLKommentarP(LKommentarP LKommentarP) { - getLKommentarPs().remove(LKommentarP); - LKommentarP.setLProbe(null); - - return LKommentarP; - } - } \ No newline at end of file
--- a/src/main/resources/META-INF/persistence.xml Tue Apr 30 14:47:59 2013 +0200 +++ b/src/main/resources/META-INF/persistence.xml Wed May 08 13:46:48 2013 +0200 @@ -6,8 +6,6 @@ http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> <persistence-unit name="primary"> <jta-data-source>java:/jboss/postgresql</jta-data-source> - <class>de.intevation.model.LKommentarP</class> - <class>de.intevation.model.LKommentarPPK</class> <class>de.intevation.model.LProbe</class> <!-- If you are running in a production environment, add a managed data source, the example data source is just for development and testing! -->