SQLServerDataTable referenceFilterDT = new TransferDataUtil().generateDataTable(referenceFilters);
if(null != referenceFilterDT) {
Query query = sessionFactory.getCurrentSession().createNativeQuery("exec p_GetQuestionWiseResponseMetrics_Samik :referenceFilterDT");
query.setParameter("referenceFilterDT", referenceFilterDT);
List<?> status = query.getResultList();
}
我正在尝试将数据表类型传递给SQL Server存储过程,但是 休眠引发异常:
org.hibernate.HibernateException:无法确定类的类型:com.microsoft.sqlserver.jdbc.SQLServerDataTable