Hibernate构造器查询,字段中有日期报org.hibernate.hql.PARSER Unable to locate appropriate cons
解决方案:
Dao:
super.getHibernateTemplate().find("select new Student(id,name,date) from Student");
实体类:
public class Student {
private Long id;
private String name;
private String address