diff --git a/hsarback/src/de/hsadmin/mods/pac/Pac.java b/hsarback/src/de/hsadmin/mods/pac/Pac.java index d724468..b1e53be 100644 --- a/hsarback/src/de/hsadmin/mods/pac/Pac.java +++ b/hsarback/src/de/hsadmin/mods/pac/Pac.java @@ -103,7 +103,7 @@ public class Pac extends AbstractEntity implements Serializable { initPacComponents(basePac); } - private void initPacComponents(BasePac basePac) { + protected void initPacComponents(BasePac basePac) { pacComponents = new HashSet(); Date today = new Date(); for (Component comp : basePac.getComponents()) { diff --git a/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java b/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java index c23525e..1490c57 100644 --- a/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java +++ b/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java @@ -45,6 +45,7 @@ public class PacModuleImpl extends AbstractModuleImpl { qBasepac.setParameter("valid", Boolean.TRUE); basepac = (BasePac) qBasepac.getSingleResult(); pac.setBasepac(basepac); + pac.initPacComponents(basepac); INetAddress curINetAddr = pac.getCurINetAddr(); if (curINetAddr == null || curINetAddr.getInetAddr() == null || curINetAddr.getInetAddr().length() == 0) { throw new HSAdminException("curinetaddr required");