pt.digitalis.maven.ormgenerator.hibernate
Class CustomGenericExporter

java.lang.Object
  extended by org.hibernate.tool.hbm2x.AbstractExporter
      extended by org.hibernate.tool.hbm2x.GenericExporter
          extended by pt.digitalis.maven.ormgenerator.hibernate.CustomGenericExporter
All Implemented Interfaces:
org.hibernate.tool.hbm2x.Exporter

public class CustomGenericExporter
extends org.hibernate.tool.hbm2x.GenericExporter

Custom exporter class for Hibernate tools. TODO: Viegas: Substitute this class in the hbmtemplate task. Use: exporterclass="pt.digitalis.maven.ormgenerator.hibernate.CustomGenericExporter" Must override some code. Goal to accept the package as a parameter so to override the jdbcconfiguration packagename parameter. Thus we can refactor the build.xml so we have a single seep of the database. Will be significantly faster!

Author:
Pedro Viegas pviegas@digitalis.pt

Field Summary
 
Fields inherited from class org.hibernate.tool.hbm2x.AbstractExporter
log, templatePaths
 
Constructor Summary
CustomGenericExporter()
           
 
Method Summary
 org.hibernate.cfg.Configuration getConfiguration()
           
protected  String getPackageNameForFile(org.hibernate.tool.hbm2x.pojo.POJOClass element)
           
 Properties getProperties()
           
 
Methods inherited from class org.hibernate.tool.hbm2x.GenericExporter
doStart, exportComponent, exportPersistentClass, exportPOJO, getClassNameForFile, getFilePattern, getTemplateName, resolveFilename, setFilePattern, setTemplateName
 
Methods inherited from class org.hibernate.tool.hbm2x.AbstractExporter
cleanUpContext, getArtifactCollector, getCfg2HbmTool, getCfg2JavaTool, getFileForClassName, getName, getOutputDirectory, getTemplateHelper, getTemplatePaths, setArtifactCollector, setConfiguration, setOutputDirectory, setProperties, setTemplateHelper, setTemplatePath, setupContext, setupTemplates, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomGenericExporter

public CustomGenericExporter()
Method Detail

getPackageNameForFile

protected String getPackageNameForFile(org.hibernate.tool.hbm2x.pojo.POJOClass element)
Overrides:
getPackageNameForFile in class org.hibernate.tool.hbm2x.GenericExporter
See Also:
GenericExporter.getPackageNameForFile(org.hibernate.tool.hbm2x.pojo.POJOClass)

getConfiguration

public org.hibernate.cfg.Configuration getConfiguration()
Overrides:
getConfiguration in class org.hibernate.tool.hbm2x.AbstractExporter
See Also:
AbstractExporter.getConfiguration()

getProperties

public Properties getProperties()
Overrides:
getProperties in class org.hibernate.tool.hbm2x.AbstractExporter
See Also:
AbstractExporter.getProperties()


Copyright © 2007-2010 Digitalis Informática Lda. All Rights Reserved.