architect-handbook

Software Architect Handbook

View on GitHub

Embedded Value / Aggregate Mapping

Maps an object into several fields of another object’s table.

Overview

An Embedded Value maps the values of an object to fields in the record of the object’s owner.

Many small objects make sense in an OO system that don’t make sense as tables in a database (e.g. currency-aware money objects and date ranges).

How It Works

When to Use It