-->
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: Paging and one-to-many associations fetching
PostPosted: Wed Sep 22, 2004 11:32 am 
Newbie

Joined: Wed Sep 22, 2004 10:20 am
Posts: 5
Location: Romania
We have a relation Object(one)-Attributes(many) and we would like to display page by page the objects along with the associated attributes.

Doing a fetch join would load the attributes, eliminate duplicates using a LinkedHashMap we are able to display correctly the data. But if the data set is large displaying all objects in a page is not an option.

If we enable paging and still do a fetch the results are not complete-as the recordset is limited to pageNumber, an object will lack some/all attributes depending of the select order.

One solution would be to page without fetching the association and for each object in that page do a fetch of attributes(n+1 selects).

Is there a simpler/more efficient solution to this?


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.