This commit is contained in:
Peter Hormanns 2011-08-30 10:50:57 +00:00
parent 38d9e8ceb8
commit 8b2e746fa9

View File

@ -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();