I used Hibernate 3.6, where I have code like this:
list =getSession().createSQLQuery(queryString) .addScalar("UNAME",Hibernate.STRING) .addScalar("COM",Hibernate.STRING) .addScalar("COM_DATE",Hibernate.DATE) .setString("id", Id).list();
Now I change the jar from 3.6 to 4.1Final
it looks like the addScalar method is requesting Type instead of Hibernate.STRING I could not find any example to solve this problem. if there is someone who knows, please help me thank you.
java hibernate
kefet Apr 21 2018-12-12T00: 00Z
source share