-->
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: Execute Sql Script while at stratup
PostPosted: Mon Apr 12, 2010 5:08 am 
Newbie

Joined: Mon Apr 12, 2010 5:02 am
Posts: 1
I want to execute sql script at my application startup ,
i have idea about the import.sql file but it works only the hb2ddl.auto=create mode only , i can not use that because it will empty my other table also .

I have another option also like write the whole script in my dao then execute it but the script is too long .

any suggestion ?


Top
 Profile  
 
 Post subject: Re: Execute Sql Script while at stratup
PostPosted: Fri Jan 20, 2012 3:36 am 
Newbie

Joined: Mon Sep 22, 2008 8:28 pm
Posts: 2
Hi,

Did you ever find a solution to this? I'd like a script to run at startup even when hibernate.hbm2ddl.auto = validate or update...


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.