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