SQL Code -119 means:
An expression starting with expression-start specified in a SELECT clause, HAVING clause, or ORDER BY clause is not specified in the GROUP BY clause or it is in a SELECT clause, HAVING clause, or ORDER BY clause with a column function and no GROUP BY clause is specified.
In DB2, if you want to order by this_.SYSTEM_LOG_FILE_ID
, then that has to be in the GROUP BY
clause. I don't use Hibernate, but can you add the GROUP BY
to your criteria
object?