com.geekologue.md4j.generators
Class HibernateDaoGenerator

java.lang.Object
  extended by com.geekologue.md4j.generators.AbstractXsltBasedGenerator
      extended by com.geekologue.md4j.generators.HibernateDaoGenerator
All Implemented Interfaces:
HibernateMappingProcessorLiason

public class HibernateDaoGenerator
extends AbstractXsltBasedGenerator
implements HibernateMappingProcessorLiason

Context parameters:

Please not that if singletonDaos is set to true, your Hibernate configuration file should include the following line: <property name="current_session_context_class">thread</property>

Author:
manos

Field Summary
 
Fields inherited from class com.geekologue.md4j.generators.AbstractXsltBasedGenerator
destDir, styleParameters
 
Constructor Summary
HibernateDaoGenerator()
           
 
Method Summary
 org.apache.tools.ant.util.FileNameMapper getNestedMapper()
          Implementations must return a nested structure mapper
 org.apache.tools.ant.util.FileNameMapper getSimpleMapper()
          Equal to <regexpmapper handledirsep="true" from="(.*)/(.*).hbm.xml" to="\1/dao/\2DAO.java" />
 void init(java.util.Map context)
           
 
Methods inherited from class com.geekologue.md4j.generators.AbstractXsltBasedGenerator
process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.geekologue.md4j.tools.ant.HibernateMappingProcessorLiason
process
 

Constructor Detail

HibernateDaoGenerator

public HibernateDaoGenerator()
Method Detail

getSimpleMapper

public org.apache.tools.ant.util.FileNameMapper getSimpleMapper()
Equal to <regexpmapper handledirsep="true" from="(.*)/(.*).hbm.xml" to="\1/dao/\2DAO.java" />

Specified by:
getSimpleMapper in class AbstractXsltBasedGenerator
Returns:
the simple mapper
See Also:
com.geekologue.md4j.tools.ant.HibernateMappingProcessorLiason#getSimpleMapper()

getNestedMapper

public org.apache.tools.ant.util.FileNameMapper getNestedMapper()
Description copied from class: AbstractXsltBasedGenerator
Implementations must return a nested structure mapper

Specified by:
getNestedMapper in class AbstractXsltBasedGenerator
Returns:
the nested mapper
See Also:
com.geekologue.md4j.tools.ant.HibernateMappingProcessorLiason#getSimpleMapper()

init

public void init(java.util.Map context)
Specified by:
init in interface HibernateMappingProcessorLiason
Overrides:
init in class AbstractXsltBasedGenerator
See Also:
HibernateMappingProcessorLiason.init(java.util.Map)


Copyright © 2003-2007 Manos Batsis. All Rights Reserved.