Defining many-to-many relationships in DDD

Are many-to-many table structures defined as value objects in DDD? What if my many-to-many structure has a unique identifier? Also, regarding one-to-many relationships? For example, if I have 2 Post and Comment structures with 1-to-many (respectively), there will be no Comment be Value Object, since technically it cannot exist without the corresponding Post? But what if it has a unique Id (Comment_Id)? Does this make it identifiable and therefore an object of an object without value? So what is this?

Thanks!

+3
source share
1 answer

, DDD . DDD -. -, DDD.

DDD, . :

  • , - - -, . , ( ), .
  • . , -.
  • " " " " . ORM .

, DDD .

+1
source

Source: https://habr.com/ru/post/1713672/


All Articles