From 0f3f06780e709e0ce887db17b8f26ed56c13fe40 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Fri, 21 Sep 2012 17:47:10 +0200 Subject: [PATCH] correct JPQL on select greylisting domains --- hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java b/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java index d3dc673..040c228 100644 --- a/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java +++ b/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java @@ -193,7 +193,7 @@ public class DomainProcessorFactory implements EntityProcessorFactory { private Processor createPostgreyConfiguration(EntityManager em) throws ProcessorException { ArrayList> domsMaps = new ArrayList>(); - 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 " + " WHERE postgreyDom.domainoptions.name = :option" + " AND postgreyDom.name = dom.name )");