From cb0df3e3ff42e8502f2840df2cfbd675d945f2e3 Mon Sep 17 00:00:00 2001
From: Michael Hierweck <michael@hierweck.de>
Date: Wed, 20 Sep 2017 21:15:51 +0200
Subject: [PATCH] OQL reference

---
 hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java b/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java
index efdadab..96f3ebc 100644
--- a/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java
+++ b/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java
@@ -253,7 +253,7 @@
 		Domain dom = (Domain) existingEntity;
 		GenericModuleImpl helperModule = new GenericModuleImpl(getTransaction());
 
-		String[] dependQueries = new String[] { "SELECT adr FROM EMailAddresses adr WHERE domain = :dom", };
+		String[] dependQueries = new String[] { "SELECT adr FROM EMailAddresses adr WHERE domain.name = :dom", };
 
 		for (String queryString : dependQueries) {
 			Query qEntities = em.createQuery(queryString);

--
Gitblit v1.9.0-SNAPSHOT