changeset 184:5bd5057f58e2

Moved entity manager to super class 'Repository'.
author Raimund Renkert <rrenkert@intevation.de>
date Mon, 01 Jul 2013 12:43:30 +0200
parents 7043530e0e56
children 4eba85fa3651
files src/main/java/de/intevation/lada/data/LKommentarMRepository.java src/main/java/de/intevation/lada/data/LKommentarPRepository.java src/main/java/de/intevation/lada/data/LMessungRepository.java src/main/java/de/intevation/lada/data/LMesswertRepository.java src/main/java/de/intevation/lada/data/LOrtRepository.java src/main/java/de/intevation/lada/data/LProbeRepository.java src/main/java/de/intevation/lada/data/LStatusRepository.java src/main/java/de/intevation/lada/data/LZusatzwertRepository.java
diffstat 8 files changed, 2 insertions(+), 49 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/data/LKommentarMRepository.java	Mon Jul 01 12:37:11 2013 +0200
+++ b/src/main/java/de/intevation/lada/data/LKommentarMRepository.java	Mon Jul 01 12:43:30 2013 +0200
@@ -4,7 +4,6 @@
 import javax.inject.Inject;
 import javax.inject.Named;
 import javax.persistence.EntityExistsException;
-import javax.persistence.EntityManager;
 import javax.persistence.TransactionRequiredException;
 
 import de.intevation.lada.manage.Manager;
@@ -21,11 +20,6 @@
 public class LKommentarMRepository
 extends Repository
 {
-    /**
-     * The entitymanager managing the data.
-     */
-    @Inject
-    private EntityManager em;
 
     /**
      * Manager class for LPRobe. Used to manipulate data objects.
--- a/src/main/java/de/intevation/lada/data/LKommentarPRepository.java	Mon Jul 01 12:37:11 2013 +0200
+++ b/src/main/java/de/intevation/lada/data/LKommentarPRepository.java	Mon Jul 01 12:43:30 2013 +0200
@@ -7,7 +7,6 @@
 import javax.inject.Inject;
 import javax.inject.Named;
 import javax.persistence.EntityExistsException;
-import javax.persistence.EntityManager;
 import javax.persistence.TransactionRequiredException;
 
 import de.intevation.lada.manage.Manager;
@@ -19,11 +18,6 @@
 public class LKommentarPRepository
 extends Repository
 {
-    /**
-     * The entitymanager managing the data.
-     */
-    @Inject
-    private EntityManager em;
 
     @Inject
     @Named("datamanager")
--- a/src/main/java/de/intevation/lada/data/LMessungRepository.java	Mon Jul 01 12:37:11 2013 +0200
+++ b/src/main/java/de/intevation/lada/data/LMessungRepository.java	Mon Jul 01 12:43:30 2013 +0200
@@ -6,7 +6,6 @@
 import javax.inject.Inject;
 import javax.inject.Named;
 import javax.persistence.EntityExistsException;
-import javax.persistence.EntityManager;
 import javax.persistence.TransactionRequiredException;
 
 import de.intevation.lada.manage.Manager;
@@ -25,11 +24,6 @@
 public class LMessungRepository
 extends Repository
 {
-    /**
-     * The entitymanager managing the data.
-     */
-    @Inject
-    private EntityManager em;
 
     /**
      * Manager class for LPRobe. Used to manipulate data objects.
--- a/src/main/java/de/intevation/lada/data/LMesswertRepository.java	Mon Jul 01 12:37:11 2013 +0200
+++ b/src/main/java/de/intevation/lada/data/LMesswertRepository.java	Mon Jul 01 12:43:30 2013 +0200
@@ -4,7 +4,6 @@
 import javax.inject.Inject;
 import javax.inject.Named;
 import javax.persistence.EntityExistsException;
-import javax.persistence.EntityManager;
 import javax.persistence.TransactionRequiredException;
 
 import de.intevation.lada.manage.Manager;
@@ -21,11 +20,6 @@
 public class LMesswertRepository
 extends Repository
 {
-    /**
-     * The entitymanager managing the data.
-     */
-    @Inject
-    private EntityManager em;
 
     /**
      * Manager class for LPRobe. Used to manipulate data objects.
--- a/src/main/java/de/intevation/lada/data/LOrtRepository.java	Mon Jul 01 12:37:11 2013 +0200
+++ b/src/main/java/de/intevation/lada/data/LOrtRepository.java	Mon Jul 01 12:43:30 2013 +0200
@@ -6,7 +6,6 @@
 import javax.inject.Inject;
 import javax.inject.Named;
 import javax.persistence.EntityExistsException;
-import javax.persistence.EntityManager;
 import javax.persistence.TransactionRequiredException;
 
 import de.intevation.lada.manage.Manager;
@@ -19,11 +18,6 @@
 public class LOrtRepository
 extends Repository
 {
-    /**
-     * The entitymanager managing the data.
-     */
-    @Inject
-    private EntityManager em;
 
     @Inject
     @Named("lortvalidator")
--- a/src/main/java/de/intevation/lada/data/LProbeRepository.java	Mon Jul 01 12:37:11 2013 +0200
+++ b/src/main/java/de/intevation/lada/data/LProbeRepository.java	Mon Jul 01 12:43:30 2013 +0200
@@ -6,7 +6,6 @@
 import javax.inject.Inject;
 import javax.inject.Named;
 import javax.persistence.EntityExistsException;
-import javax.persistence.EntityManager;
 import javax.persistence.TransactionRequiredException;
 
 import de.intevation.lada.manage.Manager;
@@ -23,13 +22,8 @@
  * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a>
  */
 @Named("lproberepository")
-public class LProbeRepository extends Repository{
-
-    /**
-     * The entitymanager managing the data.
-     */
-    @Inject
-    private EntityManager em;
+public class LProbeRepository
+extends Repository{
 
     /**
      * Manager class for LPRobe. Used to manipulate data objects.
--- a/src/main/java/de/intevation/lada/data/LStatusRepository.java	Mon Jul 01 12:37:11 2013 +0200
+++ b/src/main/java/de/intevation/lada/data/LStatusRepository.java	Mon Jul 01 12:43:30 2013 +0200
@@ -4,7 +4,6 @@
 import javax.inject.Inject;
 import javax.inject.Named;
 import javax.persistence.EntityExistsException;
-import javax.persistence.EntityManager;
 import javax.persistence.TransactionRequiredException;
 
 import de.intevation.lada.manage.Manager;
@@ -21,11 +20,6 @@
 public class LStatusRepository
 extends Repository
 {
-    /**
-     * The entitymanager managing the data.
-     */
-    @Inject
-    private EntityManager em;
 
     /**
      * Manager class for LPRobe. Used to manipulate data objects.
--- a/src/main/java/de/intevation/lada/data/LZusatzwertRepository.java	Mon Jul 01 12:37:11 2013 +0200
+++ b/src/main/java/de/intevation/lada/data/LZusatzwertRepository.java	Mon Jul 01 12:43:30 2013 +0200
@@ -22,11 +22,6 @@
 public class LZusatzwertRepository
 extends Repository
 {
-    /**
-     * The entitymanager managing the data.
-     */
-    @Inject
-    private EntityManager em;
 
     /**
      * Manager class for LPRobe. Used to manipulate data objects.
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)