-->
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: Returning the superclass /w table-per-hier & many-2-many
PostPosted: Fri Oct 22, 2004 8:42 am 
Newbie

Joined: Sat Apr 17, 2004 5:05 pm
Posts: 5
Location: Toronto, Canada
I've search around for the answer to this question. I haven't found this exact scenario on the wiki or mailing list. It is related but different than this FAQ http://www.hibernate.org/117.html#A15.

Scenario: I have superclass BaseFoo and extended it to Foo1 and Foo2. I have used the table-per-hierarchy (I think that's your terminology for this) using a field discriminator. Unlike the scenario presented in the above FAQ, I would like a many-to-many set that is mapped to return BaseFoo (and based on the discriminator return either Foo1 or Foo2).

Based on the FAQ answer, and the fact that when I return my Parent class the BaseFoo set is empty I am assuming this is not supported. Can someone confirm? Is this something overly complex, or is there an opporunitiy for me to add this support to the Hibernate source code? Or is this coming in Hibernate3? (I think the FAQ scenario is due in 3)?

Thanks in advance for the clarification.
Martin


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.