tfischer 2005/02/12 04:08:19 Modified: src/generator/src/templates/sql/base/derby columns.vm Log: Took over the standard columns.vm from oracle Revision Changes Path 1.3 +1 -20 db-torque/src/generator/src/templates/sql/base/derby/columns.vm Index: columns.vm =================================================================== RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/base/derby/columns.vm,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- columns.vm 31 Jan 2005 19:43:53 -0000 1.2 +++ columns.vm 12 Feb 2005 12:08:19 -0000 1.3 @@ -1,23 +1,4 @@ #foreach ($col in $table.Columns) - #set ( $type = $dbprops.get($col.Type) ) - #set ( $size = $col.printSize() ) - - #if ("$!col.Size" == "" || "$!col.Size" == "0" ) - #if($type == 'BLOB' || $type == 'CLOB' ) - #set ($size = "(1M)") - #else - #set ($size = "") - #end - #end - - #set ( $default = $col.DefaultSetting ) - #set ( $nullString = $strings.select($col.isNotNull(), $dbprops.get("NOTNULL"),"") ) - #if ($col.isAutoIncrement() || ($table.IdMethod == "native" && $col.isPrimaryKey())) - #set ( $autoIncrement = $dbprops.get("AUTOINCREMENT") ) - #else - #set ( $autoIncrement = " " ) - #end - - #set ( $entry = "$col.Name $type $size $default $nullString $autoIncrement," ) + #set ( $entry = "$col.SqlString," ) $strings.sub($strings.collapseSpaces($entry)," ,",",") #end
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]