Book a Demo

Author Topic: How to set AutoNum = True in Transformation?  (Read 4607 times)

pappnas

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
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:

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