1
Automation Interface, Add-Ins and Tools / How to set AutoNum = True in Transformation?
« on: September 27, 2012, 03:02:40 am »
Hi,
I want to generate a DDL Schema from UML Class Diagram.
I have the following transformation script for the Table / Primary Key:
Regards,
Markus
I want to generate a DDL Schema from UML Class Diagram.
I have the following transformation script for the Table / Primary Key:
Code: [Select]
%if classStereotype=="enumeration"%
%endTemplate%
Table
{
%TRANSFORM_REFERENCE("Table")%
%TRANSFORM_CURRENT("language", "stereotype")%
language=%qt%%genOptDefaultDatabase%%qt%
%list="Attribute" @separator="\n" @indent=" "%
%if elemType != "Association"%
PrimaryKey
{
Column
{
name=%qt%Id%qt%
type=%qt%%CONVERT_TYPE(genOptDefaultDatabase,"Integer")%%qt%
}
}
%endIf%
}
%list="Connector" @separator="\n"%
How to set the AutoNum ColumnProperty to "True"?Regards,
Markus