解决方案: Dao: super.getHibernateTemplate().find("select new Student(id,name,date) from Student"); 实体类: public class Student { private Long id; private String name; private String address; private Timestamp date; public Long getId() { public void setId(Long id) { public String getName() { public void setName(String name) { public String getAddress() { public void setAddress(String address) { public Timestamp getDate() { public void setDate(Timestamp date) { public Student() { this.id=id; } |
Hibernate构造器查询,字段中有日期报org.hibernate.hql.PARSER Unable to locate appropriate cons...
最新推荐文章于 2019-07-30 17:07:39 发布