|
From: Nananana on 26 Sep 2005 05:07 Hi. I have a class diagram of Entity classes. How can I create an ERD? TIA
From: H. S. Lahman on 26 Sep 2005 12:20 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(a)pathfindermda.com Pathfinder Solutions -- Put MDA to Work http://www.pathfindermda.com blog: http://pathfinderpeople.blogs.com/hslahman (888)OOA-PATH
From: Nananana on 26 Sep 2005 16:38 Thanks.
|
Pages: 1 Prev: UML modeler reviews Next: <UML> "uses" and "requires" stereotypes/relationships |