예제 #1
0
 public CmsRole update(CmsRole bean, Set<String> perms) {
   Updater<CmsRole> updater = new Updater<CmsRole>(bean);
   bean = dao.updateByUpdater(updater);
   bean.setPerms(perms);
   return bean;
 }
예제 #2
0
 public CmsRole save(CmsRole bean, Set<String> perms) {
   bean.setPerms(perms);
   dao.save(bean);
   return bean;
 }