-->
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.  [ 2 posts ] 
Author Message
 Post subject: Initialize hibernate
PostPosted: Thu Feb 18, 2010 7:13 am 
Newbie

Joined: Thu Feb 18, 2010 7:02 am
Posts: 1
I need that hibernate doesn't try to connect to the data base until the applications do the first query.
It is possible to do that?


Top
 Profile  
 
 Post subject: Re: Initialize hibernate
PostPosted: Thu Feb 18, 2010 7:35 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
Yes. With non-transactional data access queries.
With transactional data access queries this is not possible as
session.beginTransaction() already needs to interact with the database.


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