-->
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: Is it possible to embed a subclass into a composite-element
PostPosted: Thu Jan 27, 2005 12:50 pm 
Newbie

Joined: Wed Jan 26, 2005 8:05 am
Posts: 13
Hi guys,
I would like to know if there is a possiblity to embed a sublass element
into the composite element of the set/bag/idbag element ?

Imagine I have two classes that extend one abstract class that is mapped
to an unique table. (table per class hierarchy mapping).
These classes could be composite-elements in a idbag element of
a parent Entity. They are not entities.

I wander is there a way to declare in the idbag element that the two classes are subclasses of an abstract class
which is mapped as composite-element, mapped to a single table ?

I do not want to implement this association as entity to entit(ies) association,
but as entity to composite-element(s) association.

Do you have any suggestions ?


Hibernate version: 2.1

Thank you.
Skyrose.


Top
 Profile  
 
 Post subject: Polymorphic composite elements
PostPosted: Mon Sep 01, 2008 10:17 am 
Newbie

Joined: Fri Aug 29, 2008 1:20 am
Posts: 4
Hello!
There is still no answer to this post, and I would actually like to do the same thing.
A more recent post (http://forum.hibernate.org/viewtopic.php?t=972709&highlight=subclass+composite+element) hinted that NHibernate can't do that either.
But I would like to do that with Hibernate (3.3).
Thanks,
Nicolas.


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.