we’re running into a strange bug on Hibernate + PostgreSQL:
We have an Hibernate 3.6 application that was previously tested on Firebird, MySQL and Derby, and now we are trying to get it to work on PosgreSQL 9.2; we’re running into various weird problems that didn’t happen in the previous databases, among those, there’s a bug where nullable boolean fields that have null values in the database are loaded by Hibernate as true, instead of null. The corresponding properties on the persistent classes are all java.lang.Boolean, with no additional anotations.
Any ideas on what could cause this behaviour?
— edit —
Finally got time to do a more complete debugging: it turned out to not be an Hibernate error at all, but instead there was a LoadEventListener buried in a corner of our codebase. 😛
Anyway, thanks for the suggestions.
Finally got time to do a more complete debugging: it turned out to not be an Hibernate error at all, but instead there was a LoadEventListener buried in a corner of our codebase. 😛
Anyway, thanks for the suggestions.