changeset 187:1a92e9ea68ba

Get the entity manager from super class.
author Raimund Renkert <rrenkert@intevation.de>
date Mon, 01 Jul 2013 12:45:44 +0200
parents 7845b90dee18
children bc8e6d6f5eb1
files src/main/java/de/intevation/lada/data/LProbeRepository.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/data/LProbeRepository.java	Mon Jul 01 12:44:58 2013 +0200
+++ b/src/main/java/de/intevation/lada/data/LProbeRepository.java	Mon Jul 01 12:45:44 2013 +0200
@@ -39,7 +39,7 @@
     @Override
     public <T> Response findAll(Class<T> clazz) {
         QueryBuilder<LProbeInfo> builder =
-            new QueryBuilder<LProbeInfo>(em, LProbeInfo.class);
+            new QueryBuilder<LProbeInfo>(this.getEntityManager(), LProbeInfo.class);
         builder.distinct();
         return filter(builder.getQuery());
     }
@@ -47,7 +47,7 @@
     @Override
     public <T> Response findById(Class<T> clazz, String id) {
         QueryBuilder<LProbeInfo> builder =
-            new QueryBuilder<LProbeInfo>(em, LProbeInfo.class);
+            new QueryBuilder<LProbeInfo>(this.getEntityManager(), LProbeInfo.class);
         builder.and("probeId", id);
         builder.distinct();
         return filter(builder.getQuery());
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)