Newbie in Hibernate.
I’ve an existing schema in SQL Server and I used reverse-eng wizard in netbeans to generate POJOs from the schema. Now a decision has been made to switch to MySQL. Is there a way where I can run any hibernate utility to create tables and schema in MySQL from these POJOs?
Thank you
Bo
You can use the SchemaExport tool . It can be used via the command line , ant task or directly use the SchemaExport Class in the java code.
Here is the example to use the SchemaExport class ,
In the hibernate configuration xml , you have to specify your db connection info and your generated POJO from netbeans.