QueryException using new syntax type() but works using .class syntax

Description

I've an entity using @Any field:

I've a Spring Repository like this:

Hibernate says that the syntax is deprecated but the query works:

so I rewrote the query in this way:

but this throws an exception when I try to run the application:

Environment

None

Activity

Show:
Daniele Renda
April 1, 2019, 9:51 AM

Someone has some hint about this issue? Thanks

Assignee

Unassigned

Reporter

Daniele Renda

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure