author | Volker Birk <vb@pep.foundation> |
Thu, 08 Jun 2017 23:31:46 +0200 | |
changeset 12 | fa6d87fbf242 |
parent 0 | 76005e62091d |
permissions | -rw-r--r-- |
0 | 1 |
include uml.yml2 |
2 |
||
3 |
UML { |
|
4 |
include uml2sql.yml2 |
|
5 |
||
6 |
Root applyPackages; |
|
7 |
||
8 |
Package { |
|
9 |
param "name", "''"; |
|
10 |
if "$name=''" apply "packagedElement", 0 { with "name", "@name"; } |
|
11 |
if "$name!=''" apply "packagedElement", 0 { with "name", "concat($name, '_', @name)"; } |
|
12 |
} |
|
13 |
||
14 |
Class { |
|
15 |
param "name"; |
|
16 |
||
17 |
| CREATE TABLE «$name»_«@name» ( |
|
18 |
applyAttributes; |
|
19 |
| ); |
|
20 |
} |
|
21 |
||
22 |
Attribute | «@name» †type`if "position()!=last()" > ,` |
|
23 |
} |