-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Lazy fetch suggestion
PostPosted: Wed Jan 27, 2010 8:35 am 
Newbie

Joined: Wed Jan 27, 2010 8:16 am
Posts: 3
I don't know if it is the best place to do it, but...

I am in a big project with JPA(Hibernate), Spring and Richfaces

We built it in a way that we got a great productivity, but the lazy fetch...

I solved it by using OpenEntityManagerInView and since our model is too complicated, we clone some objects whose life continues after a request.

But in my point of view we should not worry about that.

My suggestion is that Hibernate gives us a choice to use a feature, and it could be that the Lazy load engine stores in the persistentBags or proxies a reference to the factory that created the session and when the session is closed, it creates a new session just for the fetch or maybe have an opened session associated to the Thread.

This way we would not worry with lazy loads.

Thx


Top
 Profile  
 
 Post subject: Re: Lazy fetch suggestion
PostPosted: Thu Jan 28, 2010 6:22 am 
Newbie

Joined: Wed Jan 27, 2010 8:16 am
Posts: 3
So.. does anyone agree?

Is it a good idea?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.