http://blog.csdn.net/lf_software_studio/article/details/8256510 spring 注解的网站
http://www.th7.cn/Program/Android/201408/262270.shtml json枚举转换为json形式输出
"<tr e_full='"+tr.attr("e_full")+"_"+i+"'e_index='"+i,一种拼接形式
Boolean disabled = request.getParameter("disabled").equals("true");
计算该角色有多少用户
public int countUsers(Role role) {
String hql = "select size(r.users) from Role r";
if(role != null) {
hql += " where r=?";
}
Query q = HibernateUtil.createQuery(hql);
if(role != null) {
q.setEntity(0, role);
}
Number count = (Number)q.uniqueResult();
return count.intValue();
}