Book a Demo

Author Topic: DDL MDA transformation templates: attributes' is Ordered and Allow Duplicate  (Read 3197 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Hi,

I'm working on a custom MDA transformation template with simple rules from UML Class diagram to a DDL Data Model.
The attributes transformations to perform are:
- length = UML attribute's upper bound --> length=%qt%%attUpperBound%%qt% (works ok)
- column's PK = true if UML attribute's  isId = true
- column's Not Null = true if UML attribute's  lower bound > 1

I'm struggling in finding the appropriate fields to set the latter two.. Note that the PK is stored in "t_attribute.isordered" and Not Null is stored in  "t_attribute.alloduplicates"
Any help will be greatly appreciated.

Thanks
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com