-->
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: session factory refresh
PostPosted: Wed Feb 17, 2010 9:03 am 
Newbie

Joined: Wed Feb 17, 2010 8:55 am
Posts: 1
hi all,

how to flush session factory object?

Session factory is created at the time of server started after some times some one update database i.e delete table and recreate such case some time result not occure how to handle this situation

i thing need to refresh session factory but i haven't go how?


Top
 Profile  
 
 Post subject: Re: session factory refresh
PostPosted: Wed Feb 17, 2010 9:23 am 
Newbie

Joined: Fri Oct 17, 2008 12:45 pm
Posts: 6
Hi,

you cannot change the configuration without recreating the session factory. That means you have to create a new Configuration object which you then use to create the new session factory.

Christian.


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.