org.hibernate.MappingException:没有JDBC类型的Dialect映射:3

时间:2016-03-10 11:33:29

标签: java sql hibernate

我想按照相同的条件返回行我在数据库中有此条件的5条记录,但此代码不返回,抛出异常 org.hibernate.MappingException:没有JDBC类型的Dialect映射:3

 Query selectTxnList = session.createSQLQuery("select * from TxnList where txnRecNo in (select txnRecNo from TxnAdditionalInsured where clientName like :clientName)");

 selectTxnList.setParameter("clientName", "%" + istHelper.getAdditionalInsured() + "%");

 List list = selectTxnList.list();

0 个答案:

没有答案