diff src/main/java/de/intevation/data/LProbeRepository.java @ 23:00ed8e5b05b6

Added functions to Rest-Service to add and delete a item
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 26 Apr 2013 15:02:05 +0200
parents de959fc71eda
children dc3bfcc5f717
line wrap: on
line diff
--- a/src/main/java/de/intevation/data/LProbeRepository.java	Fri Apr 26 15:00:56 2013 +0200
+++ b/src/main/java/de/intevation/data/LProbeRepository.java	Fri Apr 26 15:02:05 2013 +0200
@@ -35,6 +35,11 @@
     public LProbe findById(Long id) {
         return em.find(LProbe.class, id);
     }
+    
+    
+    public void delete(LProbe item) {
+        em.remove(item);
+    }
 
     //public LProbe findByEmail(String email) {
     //    CriteriaBuilder cb = em.getCriteriaBuilder();
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)