-->
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: Disable implicit polymorphism
PostPosted: Tue Jul 31, 2007 7:19 am 
Newbie

Joined: Sat Jul 28, 2007 7:24 am
Posts: 8
Hi all. I have two classes, B extends A. It was done like that because they have a lot of common fields, but the objects aren'r really in a hierarchy. Now, when I issue a query "from A" I get objects of both A and B class. Is it possible to disable this, and get only the object of class A? I found about some "polymorphism" attribute on a class, but don't know how it works and if it is remedy for my problem. I know that the best solution would be to completely separate these two classes, but I wonder if implicit inheritance can be switched off in Hibernate.
Thanks.


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.