Example #1
0
 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;
 }
Example #2
0
 public Role save(Role bean, Set<String> perms) {
   bean.setPerms(perms);
   dao.save(bean);
   return bean;
 }