-->
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: Table list on page and lazy loading
PostPosted: Fri Aug 26, 2005 11:54 am 
Beginner
Beginner

Joined: Mon Sep 22, 2003 5:18 am
Posts: 28
I have a certain graph of objects, which can be very complex -object contains several children objects and they also contain their children objects, etc.

I need to render a list of such objects on page.
List can be relitivly long, and I think lazy initialization is not appropriate for this, since it will hit the database N*M-times,for each item in list and for each not-loaded child property in a row at least.

But not all properties of complex object need to be rendered on list page, and thus complete loading oaf every item is not good too.


What is the best approach to accomplish this kind of task - query complex objects with ony query to database and load only needed data.
Is it the same as 'LightWeight object' pattern ? I would like to reuse the same objects used on list also on 'details' page with extra properties mapped.

Thanks.


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.