From 6ec7999be64eda24d34991083eae2430c9cd24f0 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Tue, 30 Apr 2013 18:44:38 +0200 Subject: [PATCH] better variable name --- hsarback/src/de/hsadmin/mods/pac/Pac.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hsarback/src/de/hsadmin/mods/pac/Pac.java b/hsarback/src/de/hsadmin/mods/pac/Pac.java index 9e1393d..7536363 100644 --- a/hsarback/src/de/hsadmin/mods/pac/Pac.java +++ b/hsarback/src/de/hsadmin/mods/pac/Pac.java @@ -87,11 +87,11 @@ public class Pac extends AbstractEntity implements Serializable { @Transient private BasePac basepac; - public void initPacComponents(EntityManager em, BasePac aBasePac) { - Query qBasepac = em.createQuery("SELECT b FROM BasePacs b WHERE b.valid = :valid AND b.name = :name"); - qBasepac.setParameter("valid", Boolean.TRUE); - qBasepac.setParameter("name", aBasePac.getName()); - basepac = (BasePac) qBasepac.getSingleResult(); + public void initPacComponents(EntityManager em, BasePac aBasepac) { + Query qAttachedBasepac = em.createQuery("SELECT b FROM BasePacs b WHERE b.valid = :valid AND b.name = :name"); + qAttachedBasepac.setParameter("valid", Boolean.TRUE); + qAttachedBasepac.setParameter("name", aBasepac.getName()); + basepac = (BasePac) qAttachedBasepac.getSingleResult(); setBasepac(basepac); pacComponents = new HashSet(); Date today = new Date();