Skip to content

Commit

Permalink
model updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanes committed Nov 13, 2009
1 parent 20a6e41 commit 99745ac
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 27 deletions.
11 changes: 4 additions & 7 deletions symmetric/src/main/torque/doc/docbook/datamodel.vm
Expand Up @@ -27,15 +27,13 @@


<table>
<title>Tables</title>
<tgroup cols="3">
<colspec colwidth="90px" />
<colspec colwidth="65px" />
<colspec colwidth="220px" />
<title>Table Summary</title>
<tgroup cols="2">
<colspec colwidth="130px" />
<colspec colwidth="245px" />
<thead>
<row>
<entry>Table Name</entry>
<entry>OM Class</entry>
<entry>Description</entry>
</row>
</thead>
Expand All @@ -45,7 +43,6 @@
<entry id="table-$tbl.Name.toUpperCase()">
<link linkend="table-def-$tbl.Name">$tbl.Name.toUpperCase()</link>
</entry>
<entry>$tbl.JavaName</entry>
<entry>#if ($tbl.Description) $tbl.Description#else &nbsp;#end</entry>
</row>
#end
Expand Down
34 changes: 14 additions & 20 deletions symmetric/src/main/torque/doc/docbook/table.vm
Expand Up @@ -17,27 +17,22 @@

<section>
<title>$table.Name.toUpperCase()</title>
<para>$table.Description</para>
<table id="table-def-$table.Name">
<title>$table.Name.toUpperCase()</title>
<tgroup cols="9">
<colspec colwidth="85px" />
<colspec colwidth="55px" />
<colspec colwidth="25px" />
<colspec colwidth="35px" />
<colspec colwidth="30px" />
<colspec colwidth="20px" />
<colspec colwidth="20px" />
<colspec colwidth="30px" />
<colspec colwidth="120px" />
<tgroup cols="6">
<colspec colwidth="115px" />
<colspec colwidth="50px" />
<colspec colwidth="30px" />
<colspec colwidth="18px" />
<colspec colwidth="18px" />
<colspec colwidth="150px" />
<thead>
<row>
<entry>Name</entry>
<entry>Type</entry>
<entry>Size</entry>
<entry>Type / Size</entry>
<entry>Default</entry>
<entry>Java Name</entry>
<entry>PK</entry>
<entry>FK</entry>
<entry>PK FK</entry>
<entry>not null</entry>
<entry>Description</entry>
</row>
Expand All @@ -50,12 +45,11 @@
<link linkend="table-def-$col.RelatedTableName">$col.Name</link>
#else$col.Name.toUpperCase()#end
</entry>
<entry>$col.Type</entry>
<entry>#if ($col.printSize() && $col.printSize().length() > 0) $col.printSize()#end</entry>
<entry>$col.Type #if ($col.printSize() && $col.printSize().length() > 0) $col.printSize()#end</entry>

<entry>#if ($col.DefaultValue) $col.DefaultValue#end</entry>
<entry>$col.JavaName</entry>
<entry>#if ($col.isPrimaryKey()==true)X#end</entry>
<entry>#if ($col.isForeignKey()==true)X#end</entry>
<entry>#if ($col.isPrimaryKey()==true)PK#end
#if ($col.isForeignKey()==true)FK#end</entry>
<entry>#if ($col.isNotNull()==true)X#end</entry>
<entry>#if ($col.Description) $col.Description#end</entry>
</row>
Expand Down

0 comments on commit 99745ac

Please sign in to comment.