correct JPQL on select greylisting domains
This commit is contained in:
parent
ec62249fb8
commit
0f3f06780e
@ -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 )");
|
||||||
|
Loading…
Reference in New Issue
Block a user