I'm faced with a Hibernate problem which makes absolutely no sense. I have a fairly large query which joins a whole bunch of tables with outer joins. Among others, it selects a number of boolean fields. Whereas it looks like all of the other fields are populated, the object array returned by my query contains a null value for one of the boolean fields.
I ran Netbeans in debug mode, and I copied the query and executed it in my MySQL query browser immediately before it's executed by the entity manager. In MySQL, I get the expected result (i.e. a valid boolean value in that particular field). Any thoughts on why the query works in the query browser but not in my Java code? I'm stumped.
Thanks for your help.
"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." - George Bernard Shaw