mpoeschl    01/12/18 15:26:07

  Modified:    src/rttest bookstore-schema.xml
               src/templates/doc Control.vm
               src/templates/doc/html table.vm
  Log:
  add some descriptions to the bookstore-schema
  add descriptions to html output
  
  Revision  Changes    Path
  1.6       +6 -2      jakarta-turbine-torque/src/rttest/bookstore-schema.xml
  
  Index: bookstore-schema.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-torque/src/rttest/bookstore-schema.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- bookstore-schema.xml      2001/11/05 23:40:03     1.5
  +++ bookstore-schema.xml      2001/12/18 23:26:07     1.6
  @@ -10,29 +10,33 @@
     <!-- B O O K  T A B L E                                  -->
     <!-- =================================================== -->
   
  -  <table name="book">
  +  <table name="book" description="Book table">
       <column
         name="book_id"
         required="true"
         primaryKey="true"
         type="INTEGER"
  +      description="Book Id"
       />
       <column
         name="isbn"
         required="true"
         type="VARCHAR"
         size="15"
  +      description="ISBN"
       />
       <column
         name="author_id"
         required="true"
         type="INTEGER"
  +      description="Foreign Key Author"
       />
       <column
         name="title"
         required="true"
         type="VARCHAR"
         size="255"
  +      description="Book Title"
       />
   
       <foreign-key foreignTable="author">
  @@ -46,7 +50,7 @@
     <!-- A U T H O R  T A B L E                              -->
     <!-- =================================================== -->
   
  -  <table name="author">
  +  <table name="author" description="Author table">
       <column
         name="author_id"
         required="true"
  
  
  
  1.2       +5 -1      jakarta-turbine-torque/src/templates/doc/Control.vm
  
  Index: Control.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-torque/src/templates/doc/Control.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Control.vm        2001/12/18 21:47:53     1.1
  +++ Control.vm        2001/12/18 23:26:07     1.2
  @@ -2,7 +2,11 @@
   
   #foreach ($dataModel in $dataModels)
   
  -  #set ( $outFile = "${dataModel.name}.html" )
  +  #if ($outputFormat=="html")
  +    #set ( $outFile = "${dataModel.name}.html" )
  +  #else
  +    #set ( $outFile = "${dataModel.name}.xml" )
  +  #end
   
     File to be created: $outFile
   
  
  
  
  1.2       +3 -1      jakarta-turbine-torque/src/templates/doc/html/table.vm
  
  Index: table.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-torque/src/templates/doc/html/table.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- table.vm  2001/12/18 21:47:53     1.1
  +++ table.vm  2001/12/18 23:26:07     1.2
  @@ -11,17 +11,19 @@
       <th>PK</th>
       <th>FK</th>
       <th>not null</th>
  +    <th>Description</th>
     </tr>
   #foreach ($col in $table.Columns)
     <tr>
       <td>$col.Name</td>
       <td>$col.Type</td>
       <td>$col.printSize()</td>
  -    <td>$col.DefaultValue</td>
  +    <td>$!col.DefaultValue</td>
       <td>$col.JavaName</td>
       <td>$col.isPrimaryKey()</td>
       <td>$col.isForeignKey()</td>
       <td>$col.isNotNull()</td>
  +    <td>$!col.Description</td>
     </tr>
   #end
   </table>
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to