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: many-to-one to subclassing retrive the also parent class
PostPosted: Mon Dec 13, 2004 7:34 am 
Newbie

Joined: Mon Dec 13, 2004 6:55 am
Posts: 1
Hello ,
i am a new forum user.
I'm trying to implement a polymorphic mapping using the subclassing strategy.
I map the superclass A with the discriminator DISCR, and 2 subclasses SUB1 (when DISCR=1) and subclass SUB2 (when DISCR=2).
Now, i've a class (name e.g. B ) that has a many-to-one reletionship with the subclass SUB1 , but i dosen't work:

the getSUB1() method of class B returns all type of subclass (SUB1 and SUB2).

Anybody help me !!!


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.