nothing changed
This commit is contained in:
parent
bb23e27f6e
commit
6c1765c478
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user