author | Volker Birk <vb@pep.foundation> |
Thu, 26 Apr 2018 19:26:10 +0200 | |
changeset 18 | e14c2324eb0e |
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 |
} |