## ============================================================================ ## Filename : ListAttributesTemplate.vm ## Note(s) : This template is used to generate a list of attributes for the ## the specified data class. ## ## Copyright (c) 2009 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 ## $schemaName ## $prjPkgName ## $prjClassPrefix ## $dataClass ## $date ## $codeGen #set( $attributes = $dataClass.getAttributes() ) #foreach( $attr in $attributes ) $attr.getName().toUpperCase() '$codeGen.toShortDbName($attr.getName())' [length=$attr.getTableColumnName().length()] $attr.getType() $codeGen.nvl($attr.getConstraints(), "") $codeGen.nvl($attr.getColumnDefault(), "") //#if ($attr.isRequired()) Required#else Optional#end#if (!$codeGen.isEmpty($attr.getDescription())) ($attr.getDescription())#end #end