Book a Demo

Author Topic: First is it class Diagram or ERD?  (Read 3028 times)

peter king

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
First is it class Diagram or ERD?
« on: November 22, 2009, 04:07:52 am »
Hi friends,

In project should PM decide to start designing the DB using ERD first or class diagram first?

The reason i prompt this qestion becauase in either way we could map each diagram to the other?

thanks

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: First is it class Diagram or ERD?
« Reply #1 on: November 22, 2009, 10:50:09 am »
Quote
Hi friends,

In project should PM decide to start designing the DB using ERD first or class diagram first?

The reason i prompt this question because in either way we could map each diagram to the other?

thanks
It depends on what you expect to use the DB for...

If you intend the DB to me merely a persistence of your programmatic classes then start with the classes.

If, however, the DB represents a proper data model of the domain of the the application (and possibly even more) then you should start with the ERD.

In particular, you should initially model all domain concepts without regard to the application to obtain the correct representation of the domain and then overlay the application specific data.

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

peter king

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: First is it class Diagram or ERD?
« Reply #2 on: November 22, 2009, 02:23:14 pm »
thanks paolo! :)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: First is it class Diagram or ERD?
« Reply #3 on: November 23, 2009, 07:58:37 pm »
We tend to see the classes (in a class diagram) as the logical representation where the tables (in an ERD) would be the physical representation of the data aspect of our application.

Geert