Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BDOM to Class Diagram

 
José Nunes
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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?

Thanks.
 
Ethan Zhang
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic