1617181920212223
String hql = "from CmsRole bean order by bean.priority asc"; return find(hql); } public CmsRole findById(Integer id) { CmsRole entity = get(id); return entity; }
2627282930313233343536
getSession().save(bean); return bean; } public CmsRole deleteById(Integer id) { CmsRole entity = super.get(id); if (entity != null) { getSession().delete(entity); } return entity; }
2021222324252627
return dao.getList(); } @Transactional(readOnly = true) public CmsRole findById(Integer id) { CmsRole entity = dao.findById(id); return entity; }
3839404142434445
bean.setPerms(perms); return bean; } public CmsRole deleteById(Integer id) { CmsRole bean = dao.deleteById(id); return bean; }
123124125126127128129130131132133
private boolean vldExist(Integer id, WebErrors errors) { if (errors.ifNull(id, "id")) { return true; } CmsRole entity = manager.findById(id); if (errors.ifNotExist(entity, CmsRole.class, id)) { return true; } return false; }