-->
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: subclass which has seperate table mapping should not be quer
PostPosted: Wed Mar 19, 2008 3:54 am 
Newbie

Joined: Wed Mar 19, 2008 3:50 am
Posts: 1
I have the following mapping
Resort.class is an Interface mapped to resort table
FamilyResort.class and BusinessResort implement the above interface and mapped by subclass within the Resort mapping.

I have another concrete class EuropeanResort implementing the above Resort interface but mapped to a seperate table called eu_resort in a seperate class tag.

When I query using Resort interface, hibernate is querying the eu_resort as well. I want to avoid this and when I query for Resort interface it should query for only those classes which are defined using subclass and mapped to same table.

How do i achieve this.

I am using Hibernate3


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.