<taskdef name="schemavalidator"
classname="org.hibernate.tool.hbm2ddl.SchemaValidatorTask"
classpathref="class.path"/>
<schemaupdate
properties="${build.classes.dir}/hibernate.properties"
<fileset dir="${build.classes.dir}">
<include name="*.hbm.xml"/>
</fileset>
</schemaupdate>
SchemaValidator
| Modifier and Type | Field and Description |
|---|---|
| private File | |
| private List | |
| private String | |
| private File |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| private Configuration | |
| private String[] | |
| private SchemaValidator | |
| public void | |
| public void | |
| public void |
| configurationFile | back to summary |
|---|---|
| private File configurationFile | |
| fileSets | back to summary |
|---|---|
| private List<E> fileSets | |
| namingStrategy | back to summary |
|---|---|
| private String namingStrategy | |
| propertiesFile | back to summary |
|---|---|
| private File propertiesFile | |
| SchemaValidatorTask | back to summary |
|---|---|
| public SchemaValidatorTask() | |
| 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 | |
| getFiles | back to summary |
|---|---|
| private String[] getFiles() | |
| getSchemaValidator | back to summary |
|---|---|
| private SchemaValidator getSchemaValidator(Configuration cfg) throws HibernateException, IOException | |
| setConfig | back to summary |
|---|---|
| public void setConfig(File configurationFile) Set a
| |
| setNamingStrategy | back to summary |
|---|---|
| public void setNamingStrategy(String namingStrategy) | |
| setProperties | back to summary |
|---|---|
| public void setProperties(File propertiesFile) Set a properties file
| |