From 6c1765c478ee9cc969b02f25ec3c7064c42e407c Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Fri, 21 Sep 2012 16:18:50 +0200 Subject: [PATCH] nothing changed --- hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java b/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java index 2e7038d..ec201e0 100644 --- a/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java +++ b/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java @@ -11,7 +11,6 @@ import javax.persistence.Query; import de.hsadmin.core.model.AbstractEntity; import de.hsadmin.core.model.AbstractModuleImpl; import de.hsadmin.core.model.AuthorisationException; -import de.hsadmin.core.model.GenericModuleImpl; import de.hsadmin.core.model.HSAdminException; import de.hsadmin.mods.email.EMailAddress; import de.hsadmin.mods.pac.Pac; @@ -178,9 +177,9 @@ public class DomainModuleImpl extends AbstractModuleImpl { Query query = em.createQuery("SELECT adr FROM " + EMailAddress.class.getAnnotation(javax.persistence.Entity.class).name() + " adr WHERE adr.domain.name='" + dom.getName() + "'"); List resultList = query.getResultList(); - GenericModuleImpl helperModule = new GenericModuleImpl(getTransaction()); for (Object obj : resultList) { - helperModule.delete((EMailAddress) obj); + EMailAddress eMailAddress = (EMailAddress) obj; + em.remove(eMailAddress); } super.delete(existingEntity); }