-->
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: Query row callbacks?
PostPosted: Tue Apr 30, 2013 6:27 am 
Newbie

Joined: Wed Oct 05, 2011 6:20 am
Posts: 1
I would like to run a query for a list of entities but instead of receiving a List<> of entities I would like it to process the entities one at a time in a callback of some sort. The query will return hundreds of thousands of entities and I just need to read some values and add them to various counters before disposing of the item. In the past I have used a Spring JDBC template to do this but want to make use of existing Hibernate code. Is there any kind of row/entity callback in hibernate?

[EDIT]
I've just spotted the iterate() function for the Query.


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.