-
Website
http://www.dobesland.com -
Original page
http://www.dobesland.com/2008/01/06/hibernate-fetchfetchtypelazy-making-trouble/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
spangen
1 comment · 1 points
-
Janette Toral
1 comment · 11 points
-
Targe
1 comment · 1 points
-
dobes_vandermeer
17 comments · 3 points
-
sujitkale
1 comment · 1 points
-
-
Popular Threads
During debugging, I saw that the object was a lazy proxy, and that it was not loaded, so I changed FetchType.LAZY to FetchType.EAGER and suddenly it worked!
I made sure my equals() method wasn't accessing members directly - it was using getter methods. So, I have no idea why this was not working this way.
Some kind of issue with accessing members with reflection? Or something else?
I guess I just don't feel like I have time to debug these weird hibernate behaviors when I can just not use lazy fields.
After making this post, though, I did switch some of my inverse relationships back to LAZY because they were causing all kinds of extra things to be fetched that I didn't need... hopefully I won't get burned by that too soon.