org.hibernate.tool.ant
Class JPAConfigurationTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.hibernate.tool.ant.ConfigurationTask
              extended by org.hibernate.tool.ant.JPAConfigurationTask

public class JPAConfigurationTask
extends ConfigurationTask


Field Summary
 
Fields inherited from class org.hibernate.tool.ant.ConfigurationTask
entityResolver
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
JPAConfigurationTask()
           
 
Method Summary
protected  org.hibernate.cfg.Configuration createConfiguration()
           
protected  void doConfiguration(org.hibernate.cfg.Configuration configuration)
           
 String getPersistenceUnit()
           
 void setConfigurationFile(File configurationFile)
           
 void setPersistenceUnit(String persistenceUnit)
           
protected  void validateParameters()
           
 
Methods inherited from class org.hibernate.tool.ant.ConfigurationTask
addConfiguredFileSet, addFile, getConfiguration, getConfigurationFile, getProperties, getPropertyFile, setEntityResolver, setNamingStrategy, setPropertyFile
 
Methods inherited from class org.apache.tools.ant.Task
execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPAConfigurationTask

public JPAConfigurationTask()
Method Detail

createConfiguration

protected org.hibernate.cfg.Configuration createConfiguration()
Overrides:
createConfiguration in class ConfigurationTask

doConfiguration

protected void doConfiguration(org.hibernate.cfg.Configuration configuration)
Overrides:
doConfiguration in class ConfigurationTask

validateParameters

protected void validateParameters()
                           throws org.apache.tools.ant.BuildException
Overrides:
validateParameters in class ConfigurationTask
Throws:
org.apache.tools.ant.BuildException

getPersistenceUnit

public String getPersistenceUnit()

setPersistenceUnit

public void setPersistenceUnit(String persistenceUnit)

setConfigurationFile

public void setConfigurationFile(File configurationFile)
Overrides:
setConfigurationFile in class ConfigurationTask