<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 String | |
| private File | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private String[] | |
| private void | |
| private void | |
| private void | |
| public void | |
| public String | |
| public File | |
| public boolean | |
| public void | |
| public void | |
| 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<FileSet> fileSets | |
| haltOnError | back to summary |
|---|---|
| private boolean haltOnError | |
| implicitNamingStrategy | back to summary |
|---|---|
| private String implicitNamingStrategy | |
| outputFile | back to summary |
|---|---|
| private File outputFile | |
| physicalNamingStrategy | back to summary |
|---|---|
| private String physicalNamingStrategy | |
| 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 fileSet)
| |
| collectFiles | back to summary |
|---|---|
| private String[] collectFiles() | |
| configure | back to summary |
|---|---|
| private void configure(StandardServiceRegistryBuilder registryBuilder) throws IOException | |
| configure | back to summary |
|---|---|
| private void configure(MetadataSources metadataSources) | |
| configure | back to summary |
|---|---|
private void configure(MetadataBuilder metadataBuilder, StandardServiceRegistry serviceRegistry)
| |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. Execute the task
| |
| getDelimiter | back to summary |
|---|---|
public String getDelimiter()
| |
| getOutputFile | back to summary |
|---|---|
public File getOutputFile()
| |
| 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)
| |
| setImplicitNamingStrategy | back to summary |
|---|---|
public void setImplicitNamingStrategy(String implicitNamingStrategy)
| |
| setNamingStrategy | back to summary |
|---|---|
public void setNamingStrategy(String namingStrategy)
| |
| setOutputFile | back to summary |
|---|---|
public void setOutputFile(File outputFile)
| |
| setPhysicalNamingStrategy | back to summary |
|---|---|
public void setPhysicalNamingStrategy(String physicalNamingStrategy)
| |
| 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.
| |