1

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.

Community
  • 1
  • 1
Martin Ždila
  • 2,586
  • 1
  • 24
  • 33

1 Answers1

0

You can't use the Hibernate class property, but the JPA type expression instead, via JPAExpressions.type(entity).

Timo Westkämper
  • 20,443
  • 4
  • 67
  • 103