Piotr,

On 13/04/2011, at 12:30 AM, Piotr Solnica wrote:
What you're looking for is called EmbeddedValue and DataMapper doesn't
support it yet.

EmbeddedValue is a pretty poor name for this feature.
Neither "Embedded" nor "Value" is accurate for what you mean.

What you're implementing is an "absorbed entity", which
is an entity that is an independent concept, but exists
in a one-to-one relationship with another entity which
absorbs it.

ActiveFacts is built around this notion of absorption.
Look at the examples of conceptual->relational mapping
and you'll see some fairly extreme examples. The one
I point to is in the Insurance model where:

Claim involves one Incident
VehicleIncident is a kind of Incident (subtyping)
Driving is where Person was driving in VehicleIncident (objectification)
Driving resulted in BloodTest
BloodTest yielded Result

... therefore, the Claim table absorbs a BloodTest entity
(which means absorbing the BloodTestResult value).

Here, the absorption carries over five nested levels.

Clifford Heath.

--
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to