|
I've confirmed this is an issue with count in general. Sum works perfectly fine with an expression as opposed to a field. So I'd postulate the problem is in the special tree made for count in the antlr grammar. See: https://github.com/hibernate/hibernate-orm/blob/4.2.12.Final/hibernate-core/src/main/antlr/hql.g#L717
|