Author Topic: Skip an Attribute whie DDL Transformation from LDM to PDM  (Read 508 times)

kasiakkasiak

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Skip an Attribute whie DDL Transformation from LDM to PDM
« on: May 17, 2017, 12:48:07 am »
Hi,

I am tranforming my logical data model to physical data model using standart built in DDL Tranformation.
In this transformation all of the Attributes from a logical Class are transformed into Columns of the physical table
(%list="Attribute" @separator="\n" @indent="  "%). How can I change this code to omit some attributes containing certain names. For example
I have Class "Customer" containing Attributes "First_Name", "Last_Name", "System1_Code", "System2_Code".
After DDL Transformation I'd like to have a table without Attributes containig "Code" in the name.

Thanks,
Kasia 

Simon M

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6215
  • Karma: +49/-5
    • View Profile
Re: Skip an Attribute whie DDL Transformation from LDM to PDM
« Reply #1 on: May 17, 2017, 08:38:54 am »
The easiest thing to do would be to add the following to the top of your attribute template.

Code: [Select]
$ending = %RIGHT(attName, 5)%
%if $ending == "_Code"%
%endTemplate%
Simon

support@sparxsystems.com