Commit | Line | Data |
35a1938f |
1 | [%# vim:ft=tt2 -%] |
2 | [% WRAPPER diagram %] |
3 | [% WRAPPER layer name="Background" %] |
4 | [% FOREACH table IN schema.get_tables %] |
5 | [% INCLUDE 'uml-class-start' |
6 | name = table.name |
7 | stereotype = 'Table' |
8 | visible_operations = 'false' |
9 | %] |
10 | <dia:attribute name="attributes"> |
11 | [% FOREACH field IN table.get_fields; |
12 | SET type = field.data_type; |
13 | SET type = "$type($field.size)" IF field.size; |
14 | INCLUDE "uml-attribute" |
15 | name = field.name |
16 | stereotype = 'Field' |
17 | type = type |
18 | value = field.default_value |
19 | ; |
20 | END %] |
21 | </dia:attribute> |
22 | <dia:attribute name="operations"/> |
23 | <dia:attribute name="template"> |
24 | <dia:boolean val="false"/> |
25 | </dia:attribute> |
26 | <dia:attribute name="templates"/> |
27 | [% INCLUDE 'uml-class-end' %] |
28 | [% END %] |
29 | [% END %] |
30 | [% END %] |