i have an architectural problem.
Currently i am working on a Java Application based on Spring and Hibernate where Maven is the project/dependency management tool.
As far as i know, i can "create" the database each time i run the app.
<property name="hibernate.hbm2ddl.auto" value="update"/>
And this is where i get problems..is there any possibilty to get a workflow like this:
- Create .WAR File from your project (Done)
- Deploy .WAR File to Tomcat Server (Done)
... At this point only the filesystem should be present on the server, even if i run the app.
The database should be created in the next step ...
- SSH into Tomcat Server and run:
- command to create database+tables (run sql script..) (?)
This would be a great start.
In this case i could deploy new sql scripts (update1.sql, update2.sql, ...) and run updates on the database throw the command line.
Is there any documentation on this or do you know of this workflows?
Thanks anad Greetings!