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

generating enumerations
#foreach ($enum in ${domain.getEnumerations().toList()})
	${enum.getFullName()}
	##
	#set ( $path = $strings.getPackageAsPath(${enum.getPackageName()}) )
    $files.mkdir("$outputDirectory/$path")
	##
	#set ( $fname = "${enum.Name}.java" )
    #set ( $path = "${strings.getPackageAsPath($enum.getPackageName())}$fname" )
    begin generate: $path
    $generator.parse("om/entity/enum.vm",$path,"enum",$enum)
	end generate: $path
#end

generating classes
#foreach ( $entity in ${domain.getClasses().toList()} )
	${entity.getFullName()}
	##
	#set ( $path = $strings.getPackageAsPath(${entity.getPackageName()}) )
    $files.mkdir("$outputDirectory/$path")
	##
    ## Base
	#set ( $fname = "${entityBasePrefix}${entity.getName()}${entityBaseSuffix}.java" )
    #set ( $path = "${strings.getPackageAsPath($entity.getPackageName())}$fname" )
    begin generate: $path
	$generator.parse("om/entity/entity_base.vm",$path,"entity",$entity)
	end generate: $path
	## User customizable
    #set ( $fname = "${entity.Name}.java" )
    #set ( $path = "${strings.getPackageAsPath($entity.getPackageName())}$fname" )
    ##if (!$files.file($basePath,$path).exists())
		begin generate: $path
		$generator.parse("om/entity/entity.vm",$path,"entity",$entity)
		end generate: $path
	##end
#end
[om/entity/Control.vm:end]
