-->
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.  [ 3 posts ] 
Author Message
 Post subject: Value types (<component>) and inheritance
PostPosted: Fri May 27, 2005 12:13 pm 
Regular
Regular

Joined: Thu Apr 15, 2004 1:12 pm
Posts: 55
Hi,

I want to map a class with that has a polymorphic value type property. It's not obvious to me how to do this, since from the manual (§6.1.13) and HiA (§3.5) it appears that you have to be able to include all the <property>s of the component class in the <component> mapping.

Meanwhile, the relevant texts on inheritance (manual Ch. 10, HiA §3.6) appear to discuss it only in the context of entities.

Am I just missing something? :-) Hopefully there's a quick answer here :-)

Thanks,
—ml—
[/list]


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 30, 2005 12:38 pm 
Regular
Regular

Joined: Thu Apr 15, 2004 1:12 pm
Posts: 55
Is this a job for <union-subclass>?
thx,
—ml—


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 30, 2005 1:16 pm 
Regular
Regular

Joined: Thu Apr 15, 2004 1:12 pm
Posts: 55
bah... looking at http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#mapping-declaration-unionsubclass, I guess not.

Can I use <subclass> inside <component>?
—ml—


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.