Package org.hibernate.tool.hbm2ddl
Class SchemaUpdate
java.lang.Object
org.hibernate.tool.hbm2ddl.SchemaUpdate
A commandline tool to update a database schema. May also be called from
inside an application.
-
Constructor Summary
ConstructorsConstructorDescriptionSchemaUpdate(Configuration cfg, Properties connectionProperties) SchemaUpdate(Configuration cfg, Settings settings) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(boolean script, boolean doUpdate) Execute the schema updatesReturns a List of all Exceptions which occured during the export.static voidvoidsetDelimiter(String delimiter) voidsetFormat(boolean format) voidsetHaltOnError(boolean haltOnError) voidsetOutputFile(String outputFile)
-
Constructor Details
-
SchemaUpdate
- Throws:
HibernateException
-
SchemaUpdate
- Throws:
HibernateException
-
SchemaUpdate
- Throws:
HibernateException
-
-
Method Details
-
main
-
execute
public void execute(boolean script, boolean doUpdate) Execute the schema updates- Parameters:
script- print all DDL to the console
-
getExceptions
Returns a List of all Exceptions which occured during the export.- Returns:
- A List containig the Exceptions occured during the export
-
setHaltOnError
public void setHaltOnError(boolean haltOnError) -
setFormat
public void setFormat(boolean format) -
setOutputFile
-
setDelimiter
-