wood burning stoves*
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
Author

UML Class Diagrams

Gagan Sabharwal
Ranch Hand

Joined: Apr 23, 2006
Posts: 48
Hi,

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
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
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
author
Sheriff

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
 
Don't get me started about those stupid light bulbs.
 
subject: UML Class Diagrams