-->
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: Store a Criteria in request.session
PostPosted: Tue Oct 18, 2011 9:03 am 
Newbie

Joined: Mon Jan 05, 2009 5:25 pm
Posts: 8
Hi,

A user submits a form, we get the count, and in the next step the user can choose to genereate different reports.

How can I reuse the criteria. I would like to store the criteria in session and then retrieve the results in the next step. But I am getting sesson is closed! ( even in the same request when leaving the entity manager transactional scope )

There should be a way to pass the criteria, go hibernateSession.reCreateCriteria(oldCriteria)

Is there ?


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.