1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
\r
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
\r
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
\r
5 <title>${database.projectName} schema</title>
\r
6 <style type="text/css">
\r
12 font-family: sans-serif;
\r
14 margin: 10px 5px 5px 15px;
\r
20 border-bottom: 2px solid #af0000;
\r
21 border-top: 2px solid #af0000;
\r
24 margin: 30px 0 5px 0;
\r
26 border-bottom: 2px solid #af0000;
\r
27 border-left: 10px solid #af0000;
\r
36 border-collapse:collapse;
\r
39 border: 1px solid #555;
\r
42 background-color: #cc9;
\r
46 border-bottom: 1px dotted #aaa;
\r
47 border-left: 1px solid #555;
\r
51 white-space: nowrap;
\r
89 background-color: #fff;
\r
91 table.child, table.child td, table.child th {
\r
94 border-bottom: 1px solid #aaa;
\r
95 border-right: 1px solid #aaa;
\r
101 <h1>${database.projectName} schema on ${database.databaseName}</h1>
\r
102 <p class="updatedate">${database.timestampExpression}</p>
\r
103 <h2>Table List</h2>
\r
107 #if ($database.isAliasDelimiterInDbCommentValid())
\r
112 <th>ForeignTable</th>
\r
113 <th>ReferrerTable</th>
\r
115 <th>EntityName</th>
\r
119 #foreach ($table in $database.tableDisplaySortedList)
\r
121 #if ($database.isAliasDelimiterInDbCommentValid())
\r
122 <td class="aliascell">${table.alias}</td>
\r
124 <td><a href="#${table.name}">${table.name}</a></td>
\r
125 <td>${table.type}</td>
\r
126 <td class="subcell">${table.foreignTableNameCommaStringWithHtmlHref}</td>
\r
127 <td class="subcell">${table.referrerTableNameCommaStringWithHtmlHref}</td>
\r
128 <td class="commentcell">#if ($table.hasComment()) ${table.commentForSchemaHtml}#else #end</td>
\r
129 <td class="subcell">${table.javaName}</td>
\r
135 #foreach ($table in $database.tableDisplaySortedList)
\r
136 $generator.parse("doc/html/table.vm", null, "table", $table)
\r
139 #if ($database.hasClassificationDefinitionMap())
\r
140 <h2>Classification Definition</h2>
\r
144 <th>Classification</th>
\r
145 <th>Top Comment</th>
\r
146 <th>Definition</th>
\r
150 #foreach ($classificationName in $database.classificationNameList)
\r
151 #set ($classificationMapList = $database.classificationDefinitionMap.get($classificationName))
\r
152 #set ($existTop = false)
\r
153 #if ($database.classificationTopDefinitionMap.containsKey($classificationName))
\r
154 #set ($classificationTopMap = $database.classificationTopDefinitionMap.get($classificationName))
\r
155 #set ($existTop = true)
\r
157 #set ($existTop = false)
\r
160 <td><a name="${classificationName}"/>${classificationName}</td>
\r
161 <td>#if ($existTop && $classificationTopMap.containsKey('topComment'))$classificationTopMap.get('topComment')#else #end</td>
\r
163 <table class="child">
\r
169 #foreach ($classificationMap in $classificationMapList)
\r
171 <td>$classificationMap.get('code')</td>
\r
172 <td>${classificationMap.get('name')}</td>
\r
173 <td>#if ($classificationMap.containsKey('comment'))${classificationMap.get('comment')}#else #end</td>
\r