-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Value Objects vs Value Types
PostPosted: Mon May 26, 2008 4:20 am 
Newbie

Joined: Mon Aug 23, 2004 7:54 am
Posts: 15
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...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.