if (user == null) return; if (groups == null) return;  Experimenter foundUser = iQuery.get(Experimenter.class,user.getId()); for (ExperimenterGroup group : groups) { ExperimenterGroup foundGroup = iQuery.get(ExperimenterGroup.class, group.getId()); foundUser.linkExperimenterGroup(foundGroup); } iUpdate.flush();
    public void addGroups(Experimenter user, ExperimenterGroup[] groups)    {        // TODO Auto-generated method stub            }