public Role update(Role bean, Set<String> perms) { Updater<Role> updater = new Updater<Role>(bean); bean = dao.updateByUpdater(updater); bean.getPerms().clear(); bean.setPerms(perms); return bean; }
public Role save(Role bean, Set<String> perms) { bean.setPerms(perms); dao.save(bean); return bean; }