From 8b2e746fa97b9dc24eaa5c62cb8c1a591d3aa74d Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Tue, 30 Aug 2011 10:50:57 +0000 Subject: [PATCH] fix --- .../src/de/hsadmin/mods/email/EMailAddressProcessorFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hsarback/src/de/hsadmin/mods/email/EMailAddressProcessorFactory.java b/hsarback/src/de/hsadmin/mods/email/EMailAddressProcessorFactory.java index 5c33f69..7cfa4e2 100644 --- a/hsarback/src/de/hsadmin/mods/email/EMailAddressProcessorFactory.java +++ b/hsarback/src/de/hsadmin/mods/email/EMailAddressProcessorFactory.java @@ -69,7 +69,7 @@ public class EMailAddressProcessorFactory implements EntityProcessorFactory { query.setParameter("subdomain", email.getSubdomain()); } else { - query = em.createQuery("SELECT e FROM EMailAddresses e WHERE e.subdomain IS NULL AND e.domain=:domain"); + query = em.createQuery("SELECT e FROM EMailAddresses e WHERE ( e.subdomain IS NULL OR e.subdomain = '' ) AND e.domain=:domain"); } query.setParameter("domain", email.getDomain()); List result = query.getResultList();