File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes OO, Patterns, UML and Refactoring and the fly likes UML Class Diagrams Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "UML Class Diagrams" Watch "UML Class Diagrams" New topic

UML Class Diagrams

Gagan Sabharwal
Ranch Hand

Joined: Apr 23, 2006
Posts: 48

I intend to make class diagrams for an existing database set up.I have RAD 6 as an IDE/tool. Any pointers for the above situation?
Peer Reynders

Joined: Aug 19, 2005
Posts: 2933
1.) Tables aren't classes. If you are simply looking for a for a UML profile for representing databases then have a look at A UML Profile for Data Modeling.

2.) The existing entity-relationship model is not a good foundation for the creation of an object model. Some tools do this type of conversion because people keep asking for it. Existance of these tools should not be construed as endorsement towards a best practice because it isn't. Useful tools help you map between an existing relational model and an existing object model. Both models serve different purposes and need the freedom to evolve separately. See why:

Agile Data: Object Relational Impedance Mismatch
Agile Data: Mapping Objects to Relational Databases: O/R Mapping In Detail
Agile Data: Introduction to Object-Orientation and the UML

See also: Oo Patterns Uml Refactoring Faq: Design
[ April 29, 2008: Message edited by: Peer Reynders ]
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
What Peer said!

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
I agree. Here's the link:
subject: UML Class Diagrams
It's not a secret anymore!