Class Diagram in Mongodb

2019-08-17 04:33发布

问题:

I want to make the UML for my application (i did the inverse, starting by the application because i am a beginner in internet stuff), so my question is:

i've Produit which i denormalized, so, it will be copied two times:

  • if it is a product uploaded, then it will have methods like supprimer (delete),
  • if it is added to cart, then i will not have the supprimer (delete) method, but have enlever_du_panier (reomve_from_cart).

  • So how can i show in UML that this method goes only for uploaded product and not from added_to_cart, so i make two classes with the same attributes but different methods?

  • If i have the document such as sub-document; for example, the client is splited to city , and city doesent play a big role in the system, but only did that to make the document scanning fast, would i represent it in the system AS IT IS SPLITTED?