[hibernate/dao/Control.vm:begin]
#set ($basePath = $generator.OutputPath)

generating dao hibernate implementation classes
#foreach ( $entity in ${domain.getClasses().toList()} )
	${entity.getFullName()}
	##
	#set( $entityPackage = ${entity.getPackage("dao.hibernate")} )
	$entityPackage
	#set( $path = ${strings.getPackageAsPath( $entityPackage )} )
    $files.mkdir("$outputDirectory/$path")
	##
    ## Base
	#set ( $fname = "${daoHibernatePrefix}${entity.getName()}${daoHibernateSuffix}.java" )
    #set ( $path = "${strings.getPackageAsPath($entity.getPackage('dao.hibernate'))}$fname" )
    begin generate: $path
	$generator.parse("hibernate/dao/daoImpl.vm",$path,"entity",$entity)
	end generate: $path
#end

generating dao.dicon for seasar2
#set ( $fname = "dao.dicon" )
#set ( $path = "${strings.getPackageAsPath('')}$fname" )
##if (!$files.file($basePath,$path).exists())
  begin generate: $path
  $generator.parse("hibernate/dao/dao_dicon.vm",$path)
  end generate: $path
##end

generating hibernate.dicon for seasar2
#set ( $fname = "hibernate.dicon" )
#set ( $path = "${strings.getPackageAsPath('')}$fname" )
##if (!$files.file($basePath,$path).exists())
  begin generate: $path
  $generator.parse("hibernate/dao/hibernate_dicon.vm",$path)
  end generate: $path
##end

[hibernate/dao/Control.vm:end]
