I have a question regarding Evans Value Objects and Hibernate's Value Types.
Evans:
"An object that is used to describe certain aspects of a domain, and which does not have identity, is named Value Object.
It is highly recommended that value objects be immutable. Being immutable, and having no identity, Value Objects can be shared."
Hibernate:
"Value types don’t have identifiers or identifier properties. The lifespan of a value type instance is bounded by the lifespan of the owning entity instance.
A value type doesn’t support shared references: If two users live in the same apartment, they each have a reference to their own homeAddress instance."
Is there a relation between Evans value objects and Hibernate value types?
The sharing aspect troubles me...
|