TREAT in WHERE clause throws exception

Description

Hello,

I have two entities:

and

Now I call the following query:

and I get the following exception:

I marked it as critical because I think this breaks the JPA specification.

Environment

None

Assignee

Unassigned

Reporter

Petar Tahchiev

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Critical
Configure