-->
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.  [ 2 posts ] 
Author Message
 Post subject: Why Hibernate can't map *value object* hierarchy?
PostPosted: Tue Nov 08, 2005 4:25 am 
Newbie

Joined: Thu Jan 06, 2005 8:05 am
Posts: 13
Hi all.

Beside all the goodies that Hibernate has for mapping domain model, is there some special reason why it cannot map hierarchy of value objects, only entities?

There is whole chapter about mapping hierarchy of entities and various strategies for it, but no mention about value objects like they cannot have hierarchy.

I can only map plain value object using <component>, but for hierarchy it seems I am forced to create ugly and cumbersome specialized UserType for such hierarchy that will take care of handling some discriminator column (similar to entity hierarchy mapping) by which I can recreate proper value object subclass. :-(

Regards,
Vjeran


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 08, 2005 6:34 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
as you said, it can be solved by a usertype....

_________________
Max
Don't forget to rate


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

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.