Hibernate 3.3, my SQL 5. My app passes around the unique ID for a specific item in my DB. This means that some scenarios require me to retrieve the item 9(read by Id), make a decision basedon some attribute and call some other method passing the ID. once agin, that method retrievees the oriiginal object again by ID. - there are several layers of this.
Hibernate is obviously clever enough to detect this and use caching because I see the code execute multiple times but the SQL logging only shows 1 time.
The problem is that at some point approximately 3 levels in - I start getting a not-null object back - but all the attributes are null. There are no messages being logged.
I assume this is some sort of configuration I am missing. Please can you suggest where that may be? Thanks
|