Allow KEY and VALUE in JPQL/EQL collection membership predicates.
Allow JPQL and EQL collection membership predicates to use map key and value expressions as the left operand.
Jakarta Persistence section 4.6.9 describes the left operand with state_valued_path_expression, which includes map field identification variables such as KEY(...) and VALUE(...). The current JPQL/EQL grammars use the narrower state_field_path_expression at this point, so queries such as SELECT i FROM Item i JOIN i.photos p WHERE VALUE(p) MEMBER OF i.photoValues fail before rendering.
HQL already accepts the same shape, and Hibernate ORM and EclipseLink accept these forms at EntityManager#createQuery(...) time.
This PR adds map_field_identification_variable to the JPQL/EQL collection membership left operand and covers VALUE(...) MEMBER OF, KEY(...) MEMBER OF, and VALUE(...) NOT MEMBER OF in the shared renderer TCK.
Verified with ANTLR generation and the JPQL/EQL/HQL query renderer test suite.
- [x] You have read the Spring Data contribution guidelines.
- [x] You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
- [x] You submit test cases (unit or integration tests) that back your changes.
- [x] You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).