• Post Reply Bookmark Topic Watch Topic
  • New Topic

Lazy Initialization Exception

 
kishorebabu karnam
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

We are Working with Seam and EJB3. we are facing problems of Lazy Initialization.


As a Quick fix, changed collections/Sets to "EAGER". But, as the number of entites are more, We are getting Oracle Exception - ORA-01445 while opening any page.

Please let me know any solution for this, if any one knows.
 
Ankit Garg
Sheriff
Posts: 9591
34
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well if you want to load lazily loaded one-to-many relation entities of an entity, then you can do this



This will load the lazily loaded list of the entity. When you refresh the entity, it becomes a managed entity and thus you can load the lazy relationship then. You can also use Fetch join to do the same with a query...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!