Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate 3 eager fetching

 
John Landon
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
in hibernate 3 I have object 1 that has eager relationship to object 2 and that one has eager relationship to object 3.
My problem is that object 3 is lazily retrieved. AND even when I am doing a get on it it is still not retrieved from the db fully.

Any ideas?

Thanks.
 
akhtar qureshi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to fetch data set lazy you used.
Hibernate.initialize();

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic