Design patterns·Objects and the database between them
the money object became two columns on the same row rather than a table of its own with a foreign key.
Embedded value
Also calledcomponent mapping, inline value object, composite mapping
Mapping a value object into the columns of its owner's table rather than giving it a table and an identity. It is how an address, a money amount or a date range stays a proper object in the model without becoming a row with a lifecycle. It is the single most useful mapping technique for anyone trying to escape primitive obsession without doubling their table count.