set correct basepac on pac create
| | |
| | | initPacComponents(basePac); |
| | | } |
| | | |
| | | private void initPacComponents(BasePac basePac) { |
| | | protected void initPacComponents(BasePac basePac) { |
| | | pacComponents = new HashSet<PacComponent>(); |
| | | Date today = new Date(); |
| | | for (Component comp : basePac.getComponents()) { |
| | |
| | | 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"); |