UML - Class Diagrams Order -> Products

Posted by Phorce on Programmers See other posts from Programmers or by Phorce
Published on 2012-12-02T23:19:33Z Indexed on 2012/12/02 23:24 UTC
Read the original article Hit count: 327

Filed under:
|
|

I have a class diagram that is like this:

< Order > (1) CAN HAVE (M) < products >

But therefore "Order" has the following:

Order_Id
Customer_Id
Order_date_day
Order_date_month
Order_date_yeah

But I do not know how it would handle the Products? Because, I couldn't have "ProductID" because that would mean that each item in this class would have to have a separate instance for each product (E.g. someone ordered 100 products, but only placed 1 order).

Could I have an Product object in class Order? If so, how do you represent that in UML?

Thank you

© Programmers or respective owner

Related posts about uml

Related posts about class-design