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
|