Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: pappnas 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:
%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