How to get a single database query?
posted 9 years ago
Well, that's what "eager" fetching is all about. Hibernate prefers "lazy" fetches, because complex tables with lots of relationships can potentially drag in the world and its dog and load all of it into memory at once. However, you can tweak the fetch process if you know that certain relationships will always go together.