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!
Sergey
source
share