From 449b41159c9182537b022aa20144c5c9fb38613c Mon Sep 17 00:00:00 2001 From: Michael Hierweck Date: Wed, 20 Sep 2017 21:17:05 +0200 Subject: [PATCH] OQL reference --- hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java b/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java index 96f3ebc..72d298e 100644 --- a/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java +++ b/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java @@ -253,7 +253,7 @@ public class DomainModuleImpl extends AbstractModuleImpl { Domain dom = (Domain) existingEntity; GenericModuleImpl helperModule = new GenericModuleImpl(getTransaction()); - String[] dependQueries = new String[] { "SELECT adr FROM EMailAddresses adr WHERE domain.name = :dom", }; + String[] dependQueries = new String[] { "SELECT adr FROM EMailAddresses adr WHERE adr.domain.name = :dom", }; for (String queryString : dependQueries) { Query qEntities = em.createQuery(queryString);