what is the difference between Hibernate.initialize and eager fetching
Wh开发者_运维知识库y I can't use EAGER fetching for the same purpose
You can use EAGER fetching to obtain the same result, at the end. But this means things will be always eagerly loaded (vs when you just need to). Is this what you want?
References
- Hibernate Core Reference Guide
- 20.1.4. Initializing collections and proxies
精彩评论