## ============================================================================ ## Filename : Hbm2MappingXMLTemplate.vm ## Note(s) : This template is used to generate a Hibernate 2.0 Mapping XML file. ## ## Copyright (c) 2008 ThinkUI Software Inc. All rights reserved. ## ============================================================================ ## ## **************************************************************************** ## The following variables are available in this template. For more ## information on any of the following variable, please refer to the user guide. ## **************************************************************************** ## $projectName ## $authorName ## $headerText ## $tableName ## $className ## $fullClassName ## $packageName ## $prjPkgName ## $prjClassPrefix ## $dataClass ## $date ## $auditTrailColumns ## $persistentIdGenerator ## $relationships ## $sequenceName ## $codeGen ## #foreach( $attr in $dataClass.getAttributes() ) #if ($codeGen.isIncludeAttrName($attr.getName())) #if (${codeGen.isPKAttrName($dataClass, $attr.getName())}) #if ($persistentIdGenerator != "") #if ($sequenceName) $sequenceName #end #end #elseif (!${codeGen.isFKAttrName($dataClass, $attr.getName())} || !$relationships) #end#end#end #if ($relationships && !$relationships.isEmpty()) #foreach( $relationship in $relationships ) #if ($relationship.isOneToOne()) #elseif ($relationship.isOneToMany()) #elseif ($relationship.isManyToOne()) #end#end#end