public class SchemaUpdateTask
extends MatchingTask
<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
Constructor and Description |
---|
SchemaUpdateTask() |
Modifier and Type | Method and Description |
---|---|
void |
addFileset(FileSet fileSet) |
void |
execute()
Execute the task
|
String |
getDelimiter() |
File |
getOutputFile() |
boolean |
isHaltOnError() |
void |
setConfig(File configurationFile)
Set a
cfg.xml file |
void |
setDelimiter(String delimiter) |
void |
setHaltOnError(boolean haltOnError) |
void |
setImplicitNamingStrategy(String implicitNamingStrategy) |
void |
setNamingStrategy(String namingStrategy) |
void |
setOutputFile(File outputFile) |
void |
setPhysicalNamingStrategy(String physicalNamingStrategy) |
void |
setProperties(File propertiesFile)
Set a properties file
|
void |
setQuiet(boolean quiet)
Enable "quiet" mode.
|
void |
setText(boolean text)
Enable "text-only" mode.
|
public void addFileset(FileSet fileSet)
public void setProperties(File propertiesFile)
propertiesFile
- the properties file namepublic void setConfig(File configurationFile)
cfg.xml
fileconfigurationFile
- the file namepublic void setText(boolean text)
text
- true to enable text-only modepublic void setQuiet(boolean quiet)
quiet
- true to enable quiet modepublic void setNamingStrategy(String namingStrategy)
public void setImplicitNamingStrategy(String implicitNamingStrategy)
public void setPhysicalNamingStrategy(String physicalNamingStrategy)
public File getOutputFile()
public void setOutputFile(File outputFile)
public boolean isHaltOnError()
public void setHaltOnError(boolean haltOnError)
public String getDelimiter()
public void setDelimiter(String delimiter)
public void execute() throws BuildException
BuildException
Copyright © 2017 JBoss by Red Hat. All rights reserved.