[hibernate/mapping/Control.vm:begin]

generating hibernate mapping xml
#foreach ( $entity in ${domain.getClasses().toList()} )
  #if( ${entity.getOriginal()} )
	#set( $table = ${entity.getOriginal()} )
	${entity.getFullName()}
	##
	#set( $entityPackage = ${entity.getPackage("dao.hibernate")} )
	$entityPackage
	#set( $path = ${strings.getPackageAsPath( $entityPackage )} )
    $files.mkdir("$outputDirectory/$path")
	##
    ## Base
	#set ( $fname = "${stringUtils.uncapitalize($entity.getName())}.hbm.xml" )
    #set ( $path = "${strings.getPackageAsPath($entity.getPackage('dao.hibernate'))}$fname" )
    begin generate: $path
	$generator.parse("hibernate/mapping/hbm_xml.vm",$path,"entity",$entity)
	end generate: $path
  #end
#end
[hibernate/mapping/Control.vm:end]
