org.codehaus.modello.plugin.hibernate
Class HibernateModelloGenerator

java.lang.Object
  extended byorg.codehaus.plexus.logging.AbstractLogEnabled
      extended byorg.codehaus.modello.plugin.AbstractModelloGenerator
          extended byorg.codehaus.modello.plugin.hibernate.HibernateModelloGenerator
All Implemented Interfaces:
org.codehaus.plexus.logging.LogEnabled, org.codehaus.modello.plugin.ModelloGenerator

public class HibernateModelloGenerator
extends org.codehaus.modello.plugin.AbstractModelloGenerator

Version:
$Id: HibernateModelloGenerator.java 430 2005-07-01 13:24:35Z trygvis $
Author:
Trygve Laugstøl

Field Summary
private  org.codehaus.plexus.velocity.VelocityComponent velocity
           
 
Fields inherited from class org.codehaus.modello.plugin.AbstractModelloGenerator
 
Fields inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
 
Constructor Summary
HibernateModelloGenerator()
           
 
Method Summary
 void generate(org.codehaus.modello.model.Model model, java.util.Properties properties)
           
private  void writeTemplate(java.lang.String template, java.io.File file, org.apache.velocity.context.Context context)
           
 
Methods inherited from class org.codehaus.modello.plugin.AbstractModelloGenerator
addModelImports, capitalise, getGeneratedVersion, getModel, getOutputDirectory, getParameter, getParameter, getParameter, initialize, isClassInModel, isCollection, isEmpty, isMap, isPackageWithVersion, singular, uncapitalise
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

velocity

private org.codehaus.plexus.velocity.VelocityComponent velocity
Constructor Detail

HibernateModelloGenerator

public HibernateModelloGenerator()
Method Detail

generate

public void generate(org.codehaus.modello.model.Model model,
                     java.util.Properties properties)
              throws org.codehaus.modello.ModelloException
Throws:
org.codehaus.modello.ModelloException

writeTemplate

private void writeTemplate(java.lang.String template,
                           java.io.File file,
                           org.apache.velocity.context.Context context)
                    throws org.codehaus.modello.ModelloException
Throws:
org.codehaus.modello.ModelloException