From 8e487713b78e0cb69359ed45bb25167ef8568a15 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Wed, 1 May 2013 10:41:38 +0200 Subject: [PATCH] fix error from mapping changes --- hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java b/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java index f957e6d..facba6b 100644 --- a/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java +++ b/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java @@ -71,7 +71,7 @@ public class PacModuleImpl extends AbstractModuleImpl { hive = (Hive) qHive.getSingleResult(); pac.setHive(hive); hive.getPacs().add(pac); - Query qComponents = em.createQuery("SELECT c FROM Components c WHERE c.basePacId = :basepac"); + Query qComponents = em.createQuery("SELECT c FROM Components c WHERE c.basePac.basePacId = :basepac"); qComponents.setParameter("basepac", basepac.id()); List componentsList = qComponents.getResultList(); Set pacComponents = new HashSet();