Register / Login
Win a copy of
Java 9 Revealed
this week in the
Features new in Java 9
this forum made possible by our volunteer staff, including ...
Roel De Nijs
Stephan van Hulst
Object Relational Mapping
Putting nulls in hibernate 2 query
posted 8 years ago
I am trying to do something like this:
String query = "from Buyer br where br.type= :type; resList = hsess.createQuery(query).setParameter("type", null).list();
the persistent object buyer DOES allow nulls. And there ARE nulls in the database. But when I try to run it it gives me:
"inconsistent datatypes: expected NUMBER got BINARY"
So how do I do what I want to do?
Boost this thread!
RequestDispatcher now working as expected
Null problem(java.sql.TimeStamp) for iBatis
Pattern for roles ?