It's not a secret anymore!
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes BDOM to Class Diagram Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "BDOM to Class Diagram" Watch "BDOM to Class Diagram" New topic

BDOM to Class Diagram

José Nunes

Joined: Mar 17, 2008
Posts: 8

If I have an relationship one-to-many in BDOM between two Entities (like Orden and OrdenItem). How it's represent in Class Diagram? As an Aggregation?

Ethan Zhang
Ranch Hand

Joined: Mar 19, 2008
Posts: 46
Aggregation is the part-of relationship. It's like saying that a car has an engine and wheels as its parts.
So IMOP, if your order only contain orderItem, it should be composition, otherwise you could use aggregation.

That's my 2 cents.


The Devil Wears Cartier Trinity
I agree. Here's the link:
subject: BDOM to Class Diagram
jQuery in Action, 3rd edition