Hibernate has a special "class" property. How to refer it in QueryDSL?
What I generally need is to group results by the entity type. It is possible to do it in HQL.
Hibernate has a special "class" property. How to refer it in QueryDSL?
What I generally need is to group results by the entity type. It is possible to do it in HQL.
You can't use the Hibernate class
property, but the JPA type
expression instead, via JPAExpressions.type(entity)
.