-->
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.  [ 1 post ] 
Author Message
 Post subject: Lazy loading in layered design
PostPosted: Wed Mar 16, 2005 3:07 pm 
Newbie

Joined: Mon Oct 18, 2004 1:31 pm
Posts: 3
This has been asked over and over but still there's no compelling answer that I could find either in the Hibernate book, on the Hibernate site or in any of the forums:

What is the best way to deal with lazy loading in a layered architecture?

Gavin basically suggests prefetching all required data. However, with complex object graphs, this is not a feasible solution.

I am looking for a solution that would perform tranparent non-transactional loading of lazily loaded collections for objects passed between layers. Needless to say, the original session is no longer available and the transaction that loaded the object might have already been closed by the time a collection is accessed.

Hibernate version: 3.0rc1

Thank you in advance,

Eli


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

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.