Package org.conical.common.bbl.jpa
Class DdlScriptCreator
java.lang.Object
org.conical.common.bbl.jpa.DdlScriptCreator
SQL Creator for Tables according to JPA/Hibernate annotations.
Use:
createTablesScript()
To create the table creationg script
dropTablesScript()
to create the table destruction script-
Constructor Summary
ConstructorDescriptionDdlScriptCreator
(Collection<Class<?>> entities) DdlScriptCreator
(Collection<Class<?>> entities, String dialectClass) -
Method Summary
Modifier and TypeMethodDescriptionCreate the SQL script to create all tables.Create the SQL script to drop all tables.