author | Volker Birk <vb@pep-project.org> |
Mon, 04 Nov 2019 11:38:34 +0100 | |
changeset 40 | 432ab62b2537 |
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 |
} |