-->
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.  [ 2 posts ] 
Author Message
 Post subject: Problem with group by and subclasses
PostPosted: Tue Nov 02, 2004 9:00 am 
Hi
I'm using Hibernate 2.1.3 on sapdb 7.4. I'm trying to do an HQL query on an class that is extended by another class via joined subclass.

so class B extends class A

I want to do a query like

select ...., count(A.id) from A
where .....
group by .....

The problem is the group by. It wants the columns from table of class B. But not all objects A are instanceof B, so if I add the columns of class B I get an exception that the properties are unknown for class A

Is there a way to do this?

Thnx.

Sander


Top
  
 
 Post subject:
PostPosted: Tue Nov 02, 2004 9:02 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
currently no


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

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.