My app worked correctly with Hibernate 2 but I'm having a serious problem
with Hibernate 3. It's hard to figure out what's wrong since my objects
seem to be corrupted at runtime by Hibernate :
Method toString() being implemented as
Code:
return getAttribute();
obj being the result of a query, the following two statements print different results
Code:
println(obj.toString()); // prints "foo" as expected
println(obj.getAttribute()); // prints null !!!!
The variable obj in two consecutive statements does not reference
the same content.
I've been investigating what could be the context of the error but it is
difficult since I can no longer trust the getters !
It seems that it happens only when I read the 5th row of a table : the
4th object and the 6th object are read correctly from the table but not the 5th
Is there anything to do ?
I'm using MySQL 5.0.4