-->
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: Re-initialize hibernate without restarting the VM
PostPosted: Thu Jun 14, 2012 1:41 pm 
Newbie

Joined: Wed Sep 16, 2009 11:06 am
Posts: 7
I have a very complex data processing tool that manages on the order of 90 tables, in addition to its own internal helper tables for processing the data on demand.

Each of these 90ish tables contains anywhere from 50 to 100 columns.

We manage the schema of these tables via a proprietary system that describes each column, and defines which columns go to which tables. None of this is really relevant, other than to explain why we have opted to ignore the accepted wisdom of not allowing hibernate to auto-generate tables.

That said - I have a system set up which automatically creates the hibernate hbm.xml files for these 90ish tables, and it works great. Perfectly, in fact. The only problem I have is that I have to restart my web container to have it take effect and to re-generate the tables after I've uploaded a new schema file (my program will drop affected tables when I update the schema).

So finally to my question - Is there a way to trigger hibernate to re-initialize itself from scratch WITHOUT restarting the VM it's running in?


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.