-->
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: Does Hibernate support a hot-deploy architecture?
PostPosted: Fri Jan 19, 2007 12:50 pm 
Newbie

Joined: Tue Dec 16, 2003 11:47 am
Posts: 1
Hi folks,

Does Hibernate support the ability to change custom SQL statements or relationship mapping configuration at runtime without the need to restart "servers" or without concurrency issues?

If so, I'd be very greatful for links to examples on using the configuration API.

Many TIA & Kind regards,

A


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 19, 2007 12:57 pm 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
I do not think there is a way to change the mapping data from your apps Configuration class. You can get the data out of it, but I do not think you can change it.

You can certainly reload the Configuration class during runtime and create a new SessionFactory. So you could potentially change the mapping files/create new ones then keep going.

I don't think your application will take kindly to new relationship mappings though, as the POJOs are built around the hbm.xmls and they must be similar.

_________________
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.