• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate 3 eager fetching

 
John Landon
Ranch Hand
Posts: 239
  • 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();

 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!