-->
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: Loading only baseclass in query
PostPosted: Fri Jun 03, 2005 4:30 am 
Beginner
Beginner

Joined: Sat May 07, 2005 12:01 pm
Posts: 33
Hi,

How can I retrieve just the baseclass of an object in a query? I'm using table-per-subclass. When I run a query, I get the actual types of the objects: SubclassA, SubclassB, etc. I don't want to execute a whole series of joins, as I'm only interested in the fields of the Baseclass, so I was wondering if there is a way to force a query to return each object as a Baseclass (in other words, act as if none of the <joined-subclass> mappings exist)? Baseclass is a concrete class.

Cheers,

Jen


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.