HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2013-04-30 6ec7999be64eda24d34991083eae2430c9cd24f0
better variable name
1 files modified
10 ■■■■ changed files
hsarback/src/de/hsadmin/mods/pac/Pac.java 10 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/pac/Pac.java
@@ -87,11 +87,11 @@
    @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<PacComponent>();
        Date today = new Date();