Book a Demo

Author Topic: From Class model to Data model?  (Read 3895 times)

Tom Spitzer

  • EA Novice
  • *
  • Posts: 16
  • Karma: +1/-0
    • View Profile
From Class model to Data model?
« on: March 26, 2009, 10:35:27 am »
Is there any way to generate a Data Model from a Class Model. We have a set of rules we use for our object relational mapping, so that given an class model, we can generate the supporting data model. However, in EA, I have to manually create the data model. I'm wondering if anybody has a way to take a class model diagram and derive a data model diagram from it.

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: From Class model to Data model?
« Reply #1 on: March 26, 2009, 12:34:58 pm »
Have you looked at using the MDA transforms?

Tom Spitzer

  • EA Novice
  • *
  • Posts: 16
  • Karma: +1/-0
    • View Profile
Re: From Class model to Data model?
« Reply #2 on: March 26, 2009, 12:42:30 pm »
I hadn't; I am. That looks very promising.

thanks!

GeorgeS

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Ditto (Re: From Class model to Data model?)
« Reply #3 on: April 15, 2009, 05:39:03 am »
I have the same question: This seems like a use for Automation or MDG, but I haven't yet seen any object-relational mapping capability described anywhere I can find.

The "DDL" MDA transform is a beginning, but the whole mapping of multiple classes to a single table (attributes, class discriminants, etc.) needs to be much more powerful.
« Last Edit: April 15, 2009, 05:42:16 am by GeorgeS »

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: From Class model to Data model?
« Reply #4 on: April 15, 2009, 12:07:31 pm »
If you are referring to mapping Class.Attr to Table.Field - you might like to look at: http://www.sparxsystems.com/uml_tool_guide/modeling_with_uml/connect_to_element_feature.html  (feature of 844).

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: From Class model to Data model?
« Reply #5 on: April 15, 2009, 03:56:47 pm »
Quote
If you are referring to mapping Class.Attr to Table.Field - you might like to look at: http://www.sparxsystems.com/uml_tool_guide/modeling_with_uml/connect_to_element_feature.html  (feature of 844).

But how can you evaluate this in an MDA transformation?

Kevin G. Watson

  • EA User
  • **
  • Posts: 217
  • Karma: +0/-0
  • I love EVERYTHING including Microsoft
    • View Profile
Re: From Class model to Data model?
« Reply #6 on: April 17, 2009, 09:37:26 am »
Arn't they called out by stereotypes ( Table, Column, Row... immeadiately spring to mind ).

Then ya code-gens out ya favorite Squeelly friendly framework bits and bods...  If ya got some well hairy 'formation rules' then try getting a look at the visual studio Enity Framework Model view of your database ( or the yava equiv ). [smiley=bath.gif]

Kevin [smiley=bath.gif] [smiley=2vrolijk_08.gif]