-->
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: H3: Criteria instance is tied to a session instance
PostPosted: Mon Jan 17, 2005 6:40 am 
Beginner
Beginner

Joined: Mon Mar 22, 2004 10:01 am
Posts: 22
Seems like if I create a Criteria from one session, I can not associate with another session from the same SessionFactory.

I would like to use it for a web based pageable list, and currenty I have to keep a long session and connect/disconnect it. It were much easier and better if I could open a new session at a new http request and say Criteria.setSession(newSession).

Are there any design issues with this? I could even implement it, because it may be a simple setter in the best scenario, if the session is only used to make Criteria.list() and friends possible.


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.