correct JPQL on select greylisting domains

This commit is contained in:
Peter Hormanns 2012-09-21 17:47:10 +02:00
parent ec62249fb8
commit 0f3f06780e

View File

@ -193,7 +193,7 @@ public class DomainProcessorFactory implements EntityProcessorFactory {
private Processor createPostgreyConfiguration(EntityManager em) throws ProcessorException { private Processor createPostgreyConfiguration(EntityManager em) throws ProcessorException {
ArrayList<Map<String, String>> domsMaps = new ArrayList<Map<String, String>>(); ArrayList<Map<String, String>> domsMaps = new ArrayList<Map<String, String>>();
Query query = em.createQuery("SELECT DISTINCT dom FROM Domains WHERE NOT EXISTS " + Query query = em.createQuery("SELECT DISTINCT dom FROM Domains dom WHERE NOT EXISTS " +
"( SELECT postgreyDom FROM Domains postgreyDom " + "( SELECT postgreyDom FROM Domains postgreyDom " +
" WHERE postgreyDom.domainoptions.name = :option" + " WHERE postgreyDom.domainoptions.name = :option" +
" AND postgreyDom.name = dom.name )"); " AND postgreyDom.name = dom.name )");