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,998
  • 3
  • 31
  • 35

1 Answers1

0

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

Timo Westkämper
  • 21,824
  • 5
  • 78
  • 111