changeset 42:28b9167e5a5b

Renamed LProbeService to LProbeManager and moved to package 'manage'.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 24 May 2013 11:49:37 +0200
parents a0f6d3934bce
children 13178bbe77ff
files src/main/java/de/intevation/lada/manage/LProbeManager.java src/main/java/de/intevation/lada/service/LProbeService.java
diffstat 2 files changed, 28 insertions(+), 28 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/de/intevation/lada/manage/LProbeManager.java	Fri May 24 11:49:37 2013 +0200
@@ -0,0 +1,28 @@
+package de.intevation.lada.manage;
+
+import java.util.logging.Logger;
+
+import javax.ejb.Stateless;
+import javax.ejb.TransactionAttribute;
+import javax.ejb.TransactionAttributeType;
+import javax.inject.Inject;
+import javax.persistence.EntityManager;
+
+import de.intevation.lada.model.LProbe;
+
+@Stateless
+public class LProbeManager {
+
+    @Inject
+    private Logger log;
+
+    @Inject
+    private EntityManager em;
+
+    @TransactionAttribute(TransactionAttributeType.REQUIRED)
+    public void delete(String id) throws Exception {
+        LProbe probe = em.find(LProbe.class, id);
+        log.info("Deleting " + probe.getProbeId());
+        em.remove(probe);
+    }
+}
\ No newline at end of file
--- a/src/main/java/de/intevation/lada/service/LProbeService.java	Fri May 24 09:06:14 2013 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,28 +0,0 @@
-package de.intevation.lada.service;
-
-import java.util.logging.Logger;
-
-import javax.ejb.Stateless;
-import javax.ejb.TransactionAttribute;
-import javax.ejb.TransactionAttributeType;
-import javax.inject.Inject;
-import javax.persistence.EntityManager;
-
-import de.intevation.lada.model.LProbe;
-
-@Stateless
-public class LProbeService {
-
-    @Inject
-    private Logger log;
-
-    @Inject
-    private EntityManager em;
-
-    @TransactionAttribute(TransactionAttributeType.REQUIRED)
-    public void delete(String id) throws Exception {
-        LProbe probe = em.find(LProbe.class, id);
-        log.info("Deleting " + probe.getProbeId());
-        em.remove(probe);
-    }
-}
\ No newline at end of file
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)