-->
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: Reusing Criteria objects and changin criterion parameters
PostPosted: Sun May 14, 2006 11:20 pm 
Newbie

Joined: Thu Mar 30, 2006 9:21 pm
Posts: 11
Hibernate version: 3.1.2

I have a situtation where I am retrieving blocks of data and then retrieving matching data from a second database. To do this I am using criteria objects with appended Restrictions.in(String, List) criterions to get the second lot of data.

because I an getting the data in blocks I would like to reused the Criteria object. However there seems to be no facility to changed an already appended criterion or to clone an established criteria before adding the in() criterion. It looks like I have to build the criteria from scratch each iteration.

Has anyone found a way to do this ?

ciao
Derek

_________________
Derek Clarkson
Analyst Programmer
Aegeon Pty Ltd
Melbourne Australia


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.