db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject cvs commit: db-torque/src/generator/src/templates/sql/base/derby columns.vm
Date Sat, 12 Feb 2005 12:08:19 GMT
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: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message