author | Claudio Luck <claudio.luck@pep.foundation> |
Tue, 04 Sep 2018 17:09:43 +0200 | |
changeset 46 | 41d7a6c0e7f3 |
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 |
} |