ListJoin#index() does not work

Description

ListJoin#index() does not work with Criteria API.

Example:

above code throws following exception:

JPQL works fine:

Unit tests are attached.
Thanks

Environment

None

Assignee

Unassigned

Reporter

Joe

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure