hql凡是数据是中文的都搜索不到
String hql="from Student where sdept=? and sage>?";
String parameters[]={"计算机系","3"};
List<Student> list=HibernateUtil.executeQuery(hql, parameters);
for(Student student:list){
System.out.println(student.getSname()+" "+student.getSage());
}
没有内容输出,若条件语句里的内容是英文,就可被识别,返回对象