Hello,
I've got a very wierd error Hibernate, but maybe it's just me....
Query:
Code:
SELECT SUM(field1*field2) FROM... GROUP BY ....
Hibernate parses the query and generates the correct SQL
Code:
select sum(table0_.field1*table0_.field1) as x0_0_ from ...
but then Hibernate crashes with the following error:
java.sql.SQLException: Column 'x1_0_' not found.
Hibernate obviously tries to fetch a second column ....
Probably because of the *
It works fine using
Code:
SUM(field1+field2) ....
Does anyone know what's wrong??
Lars