public class DdlCreator
extends java.lang.Object
This class may help to create your DDL file.
However, it does not support Auditing table yet as they are (maybe) not supported
by Hibernate 4 hbm2dll.
It is also unclear if the antrun plugin supports envers in hibernate 4. I wasn't successful with it.
http://docs.jboss.org/hibernate/orm/4.2/devguide/en-US/html/ch15.html#envers-generateschema
Also the result needs to be changed to uppercase and some _uniquekey statements need to be replaced as they are not
unique themselves.
The result is stored in a file "new-cdm.h2.sql" in the root directory and is written to the console.
- Author:
- a.mueller