Book a Demo

Author Topic: DDL Transformation  (Read 5167 times)

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
DDL Transformation
« on: December 05, 2013, 07:44:37 am »
Hello,

I don't really understand the transformation of the Attribute type to the Column type.

As far as I understand: In the Class Diagram I have to use a Common Type as defined in Settings, Database Types. I have no possibility to extend the Common Types.

An Example: The example model has a data type "String/string". This is converted to something like varchar. Why? There is no Common Type "String/string".

I hope someone can explain me the magic behind that


Thanks in advance,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: DDL Transformation
« Reply #1 on: December 05, 2013, 08:52:12 am »
I searched for "ddl datatype" in the help and probably the 4th entry is (per title) what you are looking for. I did not read it in detail, though.

q.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: DDL Transformation
« Reply #2 on: December 05, 2013, 05:35:29 pm »
Thanks Thomas!

The documentation you found is in fact a description of the elements maintained by the settings dialog.

I have no good idea how the transformation works.


Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: DDL Transformation
« Reply #3 on: December 05, 2013, 10:21:45 pm »
If I were convinced of the concept I would start writing a booklet, but honestly I do not like this awkward scripting language Sparx has invented here.

Maybe some kind soul at Sparx can help out.

q.

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: DDL Transformation
« Reply #4 on: December 09, 2013, 04:25:15 pm »
With the MDA Transforms in general they are using the UML standard Data type set which only includes Integer, Boolean, String etc.
These are transformed in the Attribute transform script.

For an example of manipulating this there are some scripts on the community site for reverse transform from Physical to Logical model - this uses standard script to translate the Physical DBMS types - see:
http://community.sparxsystems.com/community-resources/512-84data-modeling-logical-and-conceptual-mda-transforms