我在使用Hibernate 3.6, 我有这样的法典:
list =getSession().createSQLQuery(queryString)
.addScalar("UNAME",Hibernate.STRING)
.addScalar("COM",Hibernate.STRING)
.addScalar("COM_DATE",Hibernate.DATE)
.setString("id", Id).list();
我现在将杰尔从3.6改为4.1Final
it seems like the addScalar method is askying for Type in stead of Hibernate.STRING I couldn t find any example hot to resolve this. if there is anyone that who know please help me thank you.