fix error from mapping changes

This commit is contained in:
Peter Hormanns 2013-05-01 10:41:38 +02:00
parent 95c92273e9
commit 8e487713b7

View File

@ -71,7 +71,7 @@ public class PacModuleImpl extends AbstractModuleImpl {
hive = (Hive) qHive.getSingleResult(); hive = (Hive) qHive.getSingleResult();
pac.setHive(hive); pac.setHive(hive);
hive.getPacs().add(pac); 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()); qComponents.setParameter("basepac", basepac.id());
List<?> componentsList = qComponents.getResultList(); List<?> componentsList = qComponents.getResultList();
Set<PacComponent> pacComponents = new HashSet<PacComponent>(); Set<PacComponent> pacComponents = new HashSet<PacComponent>();