From 8e487713b78e0cb69359ed45bb25167ef8568a15 Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@jalin.de>
Date: Wed, 01 May 2013 10:41:38 +0200
Subject: [PATCH] fix error from mapping changes

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

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 @@
 		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<PacComponent> pacComponents = new HashSet<PacComponent>();

--
Gitblit v1.9.0-SNAPSHOT