Friday, April 20, 2012

Hibernate 4.1Final

I was using Hibernate 3.6 where I have a code like this:

list =getSession().createSQLQuery(queryString)
.setString("id", Id).list();

now I change the jar from 3.6 to 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.

No comments:

Post a Comment