Commit | Line | Data |
35a1938f |
1 | [%# vim:ft=tt2 -%] |
8fbe040d |
2 | [% WRAPPER diagram.tt2 %] |
3 | [% WRAPPER layer.tt2 name="Background" %] |
35a1938f |
4 | [% FOREACH table IN schema.get_tables %] |
8fbe040d |
5 | [% INCLUDE 'uml-class-start.tt2' |
35a1938f |
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; |
8fbe040d |
14 | INCLUDE "uml-attribute.tt2" |
35a1938f |
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"/> |
8fbe040d |
27 | [% INCLUDE 'uml-class-end.tt2' %] |
35a1938f |
28 | [% END %] |
29 | [% END %] |
30 | [% END %] |