143144145146147148149150151152153
oldRights.removeAll(backup); Iterator<Integer> addNew = rights.iterator(); while(addNew.hasNext()) { ArmRight r = new ArmRight(); r.setId(new ArmRightPK(armID, addNew.next())); manager.persist(r); } if(oldRights.size() > 0) { Field f[] = {