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();