Re: How to create an ERD with Rational Rose?



Responding to Nananana...

I have a class diagram of Entity classes.
How can I create an ERD?

Assuming these are Entity classes in the Jacobson sense and the Class Diagram is well-formed:


(1) strip off any Operations (there shouldn't be a lot besides getters/setters)
(2) strip off any Interfaces (the "lollipop" element in UML).
(3) provide identity and referential attributes as needed for the relationships.
(4) convert any exotic relationships (dependency, composition, etc.) to simple bi-directional associations.


Note that (1) may result in collapsing subclassing trees to a single Entity (i.e., there may no longer be a basis for distinguishing subclasses).

Now for a push back: why do you want an ERD if you have a Class Diagram? If it is simply to map your objects into persistence the conversion is likely to be more complicated. That is, you want to create and ERD directly from an optimal RDB schema rather than trying to convert a Class Diagram for a specific problem solution.

*************
There is nothing wrong with me that could
not be cured by a capful of Drano.

H. S. Lahman
hsl@xxxxxxxxxxxxxxxxx
Pathfinder Solutions  -- Put MDA to Work
http://www.pathfindermda.com
blog: http://pathfinderpeople.blogs.com/hslahman
(888)OOA-PATH



.



Relevant Pages

  • Re: OOA?
    ... Regarding Zachman. ... represented in the ERD model. ... That's where ERD notation would certainly argue its greates advantage. ... > with explicit class attributes in a Class Diagram. ...
    (comp.object)
  • Re: OOA?
    ... >> That's where ERD notation would certainly argue its greates advantage. ... > Class Diagram a scalar ADT value can actually represent an arbitrarily ... They all manage the dynamics of relationship ... > So subsystems to manage UI and persistence access get relegated to low ...
    (comp.object)
  • Re: OOA?
    ... > That's where ERD notation would certainly argue its greates advantage. ... 1:1 with the persistence model in complex applications. ... Class Diagram a scalar ADT value can actually represent an arbitrarily ... They all manage the dynamics of relationship ...
    (comp.object)