223224225226227228229230231232
} Iterator<Integer> addNew = actions.iterator(); while(addNew.hasNext()) { ServiceAction r = new ServiceAction(); r.setKey(new ServiceActionPK(service, addNew.next())); System.out.println("Added new:" + r); manager.persist(r); } }