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
Post a Comment