Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is there a way to pull in all child objects?

 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i am new to hibernate when i start my first program i got lazy initialization exception, some one suggested me to change the fetch.LAZY annotation in fetch.EAGER the problem is solved for now. Due to that change i think i stuck with another one i have around 10 classes and for the server i need everything loaded.I was avoiding using FetchType.EAGER as that meant its always eager and in particular the web front end loads everything - but perhaps that is the way to go - is there any thing to other than this. If yes please give me a valuable suggestion. Some one suggested me to use second-level cache is it solve my problem this is same as my previous post please help me.
 
Murali Ranga
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to work lazy loading for web views configure hibernate filter in web.xml
use Open Session In View pattern
 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please give me some examples cause am new to hibernate.
 
Murali Ranga
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I searched on web ,I got this link
Using OpenSessionInViewFilter in Spring
http://cchweblog.wordpress.com/2009/10/10/using-opensessioninviewfilter-in-spring-web-application/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic