-->
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: Polymorphism and self-reference
PostPosted: Thu Nov 22, 2007 6:21 am 
Newbie

Joined: Thu Nov 22, 2007 6:11 am
Posts: 6
Hello everybody,

I am trying to study how to use polymorphism and self-referencing.
To make things clearer let's say we have a Context generic class (abstract) with several concrete implementations that reference a Context father.

I would like to map these relations in Hibernate and my idea is to use polymorphism.

My guess is that
I think I can handle that either with joined-subclass or subclass tags but not with the union-subclass one.

Am I right ? Or is there a way to do also with union-subclass? In fact I can't see how it would be possible with the SQL tables behind that last mapping.

Thanks in advance for your help!

Regards

Pascal


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.