Commit bc07e91e authored by michael.simon's avatar michael.simon
Browse files

merge user and group objects for ajax requests. #46

parent 964a2751
......@@ -68,11 +68,15 @@ public class GroupServiceImpl extends BaseServiceImpl<GroupEntity, Long> impleme
@Override
public void addUserToGroup(UserEntity user, GroupEntity group) {
group = groupDao.merge(group);
user = userDao.merge(user);
groupDao.addUserToGroup(user, group);
}
@Override
public void removeUserGromGroup(UserEntity user, GroupEntity group) {
group = groupDao.merge(group);
user = userDao.merge(user);
groupDao.removeUserGromGroup(user, group);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment