需要从数据库中查询得出一个实体,报错“ERROR: 将 nvarchar 值转换为 JDBC 数据类型 TIMESTAMP 时发生错误。”
public void getCustomer(){
Customer cust = new Customer();
Session session = getCurrentSession();
Transaction tx = session.beginTransaction();
cust = (Customer) session.createQuery("from Customer where CUSTOMER_PHONE = '13540253987'").uniqueResult();
System.out.println(cust);
}
```我用的是springMVC+hibernate+spring框架,sqlserver数据库。求大神指导