Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Embed connections between classes in MDriven

When creating the connections between two classes in UML (using MDriven), I inserted the correct values in each end (e.g. 0..*). However, when pressing Enter, an (e) appeared after the values. I found out, that it stands for "embed".

Which end of the connection should be "embed" in certain situations and why?

like image 655
Joe Andersson Avatar asked Feb 15 '26 12:02

Joe Andersson


1 Answers

Embed is best explained as "in which table is the foreign key placed" This is often self-evident:

  • One-to-Many - foreign key will go in many end.
  • Many-to-Many - foreign key will go into link-class(possibly implicit)
  • One-to-One - This is where Embed-flag becomes important, because it is optional where to put the foreign key.

If you do not know what end to pick - you can just pick any of them. But as you grow more experienced you might want to have the ability to control this.

like image 131
Hans Karlsen Avatar answered Feb 18 '26 01:02

Hans Karlsen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!