Book a Demo

Author Topic: Database Tables  (Read 4605 times)

frankk

  • EA User
  • **
  • Posts: 96
  • Karma: +0/-0
    • View Profile
Database Tables
« on: November 16, 2007, 02:39:33 pm »
I have a database schema mapped out as a Class diagram. I just noticed that EA supports actual Table elements, with 'column' (etc.) attributes.

Is there any way to convert a Class to a Table? Or would I have to redraw all the diagrams?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Database Tables
« Reply #1 on: November 16, 2007, 03:29:24 pm »
Hi Frank,

There may be a built-in transform to do this. If not, it should not be too difficult to create one.

Just make sure you have your default database set in the Settings | Database Datatypes dialog first.

David
No, you can't have it!

dbax

  • EA User
  • **
  • Posts: 69
  • Karma: +0/-0
  • One EA To Rule Them All
    • View Profile
Re: Database Tables
« Reply #2 on: November 16, 2007, 03:40:03 pm »
No need to write special transformation. Just use the EA's built in transformation and transform the class package to DDL. Then you will get the classes stereotyped as tables with Language property list showing EA's supported target databases. You will need to set each table to desired DBMS.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Database Tables
« Reply #3 on: November 16, 2007, 03:45:00 pm »
Thanks,

I seem to find myself transforming the other way, so I'd forgotten how best to do this in EA. I was just sure there was a way.

David
No, you can't have it!

frankk

  • EA User
  • **
  • Posts: 96
  • Karma: +0/-0
    • View Profile
Re: Database Tables
« Reply #4 on: November 19, 2007, 07:17:49 am »
Sorry, I've never done a transformation. Could someone please point me at the appropriate documentation?

What do I do after transforming to DDL?

thomaskilian

  • Guest
Re: Database Tables
« Reply #5 on: November 19, 2007, 07:25:16 am »
See the Help.
« Last Edit: November 19, 2007, 07:25:52 am by thomaskilian »

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Database Tables
« Reply #6 on: November 19, 2007, 02:51:15 pm »
This gives you the introduction to Transforms:

http://www.sparxsystems.com.au/EAUserGuide/index.html?mdastyletransforms.htm

This tells you about the built-in DDL Transformation:

http://www.sparxsystems.com.au/EAUserGuide/index.html?ddltransformation.htm

And if that does not give you what you want, this tells you about writing your own transformations:

http://www.sparxsystems.com.au/EAUserGuide/index.html?writingtransformations.htm

HTH
Best Regards, Roy

frankk

  • EA User
  • **
  • Posts: 96
  • Karma: +0/-0
    • View Profile
Re: Database Tables
« Reply #7 on: November 20, 2007, 05:52:55 am »
Thank you :-)