-->
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: getting a Configuration from a SessionFactory
PostPosted: Fri Jan 06, 2006 1:37 pm 
Newbie

Joined: Thu Jul 15, 2004 1:07 pm
Posts: 9
Hibernate version: 2.1.8

I am using Spring 1.1.3 with Hibernate. The session factory is configured as a spring brean in my application. Is there any way to get the Configuration object from which the session factory was configured? I'd like to run SchemaExport and SchemaUpdate, but have only a handle on the session factory.

Jay


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 06, 2006 3:15 pm 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
just add a getter for the Configuration file that the SessionFactory uses. The Configuration is in there, so just modify the interface (SessionFactory) and the implementing class (SessionFactoryImpl) and recompile it

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


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.