<taskdef name="schemaupdate"
classname="org.hibernate.tool.hbm2ddl.SchemaUpdateTask"
classpathref="class.path"/>
<schemaupdate
properties="${build.classes.dir}/hibernate.properties"
quiet="no"
<fileset dir="${build.classes.dir}">
<include name="*.hbm.xml"/>
</fileset>
</schemaupdate>
SchemaUpdate
| Modifier and Type | Field and Description |
|---|---|
| private File | |
| private String | |
| private List | |
| private boolean | |
| private String | |
| private File | |
| private File | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| private Configuration | |
| public String | |
| private String[] | |
| public File | |
| private SchemaUpdate | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| configurationFile | back to summary |
|---|---|
| private File configurationFile | |
| delimiter | back to summary |
|---|---|
| private String delimiter | |
| fileSets | back to summary |
|---|---|
| private List<E> fileSets | |
| haltOnError | back to summary |
|---|---|
| private boolean haltOnError | |
| namingStrategy | back to summary |
|---|---|
| private String namingStrategy | |
| outputFile | back to summary |
|---|---|
| private File outputFile | |
| propertiesFile | back to summary |
|---|---|
| private File propertiesFile | |
| quiet | back to summary |
|---|---|
| private boolean quiet | |
| text | back to summary |
|---|---|
| private boolean text | |
| SchemaUpdateTask | back to summary |
|---|---|
| public SchemaUpdateTask() | |
| addFileset | back to summary |
|---|---|
| public void addFileset(FileSet set) | |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. Execute the task
| |
| getConfiguration | back to summary |
|---|---|
| private Configuration getConfiguration() throws Exception | |
| getDelimiter | back to summary |
|---|---|
| public String getDelimiter() | |
| getFiles | back to summary |
|---|---|
| private String[] getFiles() | |
| getOutputFile | back to summary |
|---|---|
| public File getOutputFile() | |
| getSchemaUpdate | back to summary |
|---|---|
| private SchemaUpdate getSchemaUpdate(Configuration cfg) throws HibernateException, IOException | |
| isHaltOnError | back to summary |
|---|---|
| public boolean isHaltOnError() | |
| setConfig | back to summary |
|---|---|
| public void setConfig(File configurationFile) Set a
| |
| setDelimiter | back to summary |
|---|---|
| public void setDelimiter(String delimiter) | |
| setHaltOnError | back to summary |
|---|---|
| public void setHaltOnError(boolean haltOnError) | |
| setNamingStrategy | back to summary |
|---|---|
| public void setNamingStrategy(String namingStrategy) | |
| setOutputFile | back to summary |
|---|---|
| public void setOutputFile(File outputFile) | |
| setProperties | back to summary |
|---|---|
| public void setProperties(File propertiesFile) Set a properties file
| |
| setQuiet | back to summary |
|---|---|
| public void setQuiet(boolean quiet) Enable "quiet" mode. The schema will not be written to standard out.
| |
| setText | back to summary |
|---|---|
| public void setText(boolean text) Enable "text-only" mode. The schema will not be updated in the database.
| |