public class SchemaValidatorTask
extends MatchingTask
<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| Constructor and Description |
|---|
SchemaValidatorTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFileset(FileSet set) |
void |
execute()
Execute the task
|
void |
setConfig(File configurationFile)
Set a
|
void |
setNamingStrategy(String namingStrategy) |
void |
setProperties(File propertiesFile)
Set a properties file
|
public void addFileset(FileSet set)
public void setProperties(File propertiesFile)
propertiesFile - the properties file namepublic void setConfig(File configurationFile)
configurationFile - the file namepublic void execute()
throws BuildException
BuildExceptionpublic void setNamingStrategy(String namingStrategy)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.