java.lang.Object | ||
↳ | MatchingTask | |
↳ | org.hibernate.tool.hbm2ddl.SchemaExportTask |
An Ant task for SchemaExport.
<taskdef name="schemaexport" classname="org.hibernate.tool.hbm2ddl.SchemaExportTask" classpathref="class.path"/> <schemaexport properties="${build.classes.dir}/hibernate.properties" quiet="no" text="no" drop="no" delimiter=";" output="${build.dir}/schema-export.sql"> <fileset dir="${build.classes.dir}"> <include name="*.hbm.xml"/> </fileset> </schemaexport>
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Execute the task
| |||||||||||
Set a
| |||||||||||
Enable "create" mode.
| |||||||||||
Set the end of statement delimiter for the generated script
| |||||||||||
Enable "drop" mode.
| |||||||||||
Set the script output file
| |||||||||||
Set a properties file
| |||||||||||
Enable "quiet" mode.
| |||||||||||
Enable "text-only" mode.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Execute the task
BuildException |
---|
Set a
configurationFile | the path to the resource |
---|
Enable "create" mode. Database objects will be created but not first dropped.
create | true to enable create mode |
---|
Set the end of statement delimiter for the generated script
delimiter | the delimiter |
---|
Enable "drop" mode. Database objects will be dropped but not recreated.
drop | true to enable drop mode |
---|
Set the script output file
outputFile | the file name |
---|
Set a properties file
propertiesFile | the properties file name |
---|
Enable "quiet" mode. The schema will not be written to standard out.
quiet | true to enable quiet mode |
---|
Enable "text-only" mode. The schema will not be exported to the database.
text | true to enable text-only mode |
---|