Book a Demo

Author Topic: Building a class model from RDMS Model  (Read 3340 times)

beachdefender

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Building a class model from RDMS Model
« on: January 28, 2015, 05:58:13 pm »
Hi,
Most of the projects I have been involved in lately tend to start with an existing application with a rdbms database and a legacy platform or front end.  

I have found that using EA to extract the existing data structures and refining that in to a new model has been a very successful mechanism in helping organisations evolve their internal systems or (in the current case) software products.

I've used EA for some time to devleop use case models, etc.  But as yet I have not seen a simple mechanism to automate the development of the first layer of a new database abstraction layer from the RDBMS model.

Is there a mechanism to do this or do I need to build the class structures from scratch?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Building a class model from RDMS Model
« Reply #1 on: January 28, 2015, 07:30:30 pm »
You can import the tables in your EA model, but there's no way to create a logical data model from the physical data model.

The reason is that it is plain impossible.
When transforming from logical to physical (relational) database model you make choices.
You decide from which point in an inheritance table you make a table. (all subclasses in one table, or one table for each subclass, or something in between)
You also decide what do to with n-m relations, whether or not to add the field of a datatype inline as columns, etc...

All this information is simply not present in your database model, so there's no way to reverse engineer that logical to physical transformation.

Geert

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Building a class model from RDMS Model
« Reply #2 on: February 03, 2015, 11:48:15 am »
There are some Transform scripts available on the Community site for doing a reverse transform from DDL (Physical) to Logical and Logical to Conceptual - see: http://community.sparxsystems.com/community-resources/512-84data-modeling-logical-and-conceptual-mda-transforms

beachdefender

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Building a class model from RDMS Model
« Reply #3 on: February 03, 2015, 01:09:34 pm »
Hi,
Thanks,  I'll take a look.

Stay well
Barry