domain driven design - How to Persist N Value Objects in an Aggregate Root -


in ddd, in aggregate root of person value object of address, mapping address database table simple: embed attributes of address object record. when person has list, count can vary? create separate table stores our addresses (thereby imposing quasi-identity on each one), , each row fk person belongs?

there example of object-relational impedance mismatch. can have layer super-type persistence concerns such id field lives. therefore, persistence layer's point of view, vo entity, still modeled vo in domain.

you can read more above here.


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -