author | Volker Birk <vb@pep-project.org> |
Tue, 15 Dec 2020 11:30:47 +0100 | |
changeset 69 | 2a1581de91ea |
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 |
} |