I'm using hibernate 2.0.3, mysql 4.0.15 on a linux box, driver version 3.0.11.
I have the following test case failing:
Code:
Session session = ...
Integer id = ....
List list1 = session.find("from User u where u.id = ?", id, Hibernate.INTEGER);
List list2 = session.find("from User u where u.id = ?", id, Hibernate.SERIALIZABLE);
assertTrue(list1.size(), list2.size());
I supose it should pass. Hibernate generates the same query twice but only with Hibernate.INTEGER it actually returns any object, no exceptions are thrown or any other sign of problem.
An I not supposed to use Hibernate.SERIALIZABLE or this is a bug somewhere?