Joined: Wed Oct 11, 2006 4:54 am Posts: 5
|
I want to drop an existing schema (if it exist) in a MySQL database and create a new one ready for insertion.
The need is for setting up a "bacth" creation of several databases..
How can I do this in Hibernate, I have read about the SchemaExport option. But this requires me to save the generated sql to a file and then then continue from there.. there is not an option like the schemaUpdate in org.springframework.orm.hibernate3.LocalSessionFactoryBean that also created the schema if it does not exist???
Or if it of cource can be done in the code in som smart way.
|
|