-->
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.  [ 5 posts ] 
Author Message
 Post subject: Pagination in one-to-many relations
PostPosted: Fri Jan 07, 2005 4:06 am 
Newbie

Joined: Fri Jan 07, 2005 3:57 am
Posts: 16
Hibernate version: 2.1.7c

Hi,

I have read something about paging in hibernate, but all is about querys. I haven't found any about paging in relations mapped in the configuration files. In this files I configure the relations as Set. Is possible to paging relations? or only qyerys?

I would appreciate any help


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 07, 2005 4:31 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
what do you mean by paging relation? what king of code would you use?

maybe batch-size is what you need, it is really well explained in HiA

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 07, 2005 5:01 am 
Newbie

Joined: Fri Jan 07, 2005 3:57 am
Posts: 16
anthony wrote:
what do you mean by paging relation? what king of code would you use?


Well I want to declare the relation in the mapping file *.hbm.xml as Set, and afterward paging the Set by code.

anthony wrote:
maybe batch-size is what you need


I have thought this posibility but how I could see next page of data by code?. The set hasn't any method what do this.

anthony wrote:
it is really well explained in HiA


which is HiA? where I can found it?

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 07, 2005 5:03 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
Hibernate in Action
http://www.hibernate.org/beamto.php?act ... &beam_id=9

you can get it on amazone

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 07, 2005 6:13 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
session.createFilter(mySet, "").setFirstResult().setMaxResult().list()...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.