Attached is a test case. Unpack and run mvn clean test to see 2 of 3 tests fail. Run mvn -Popenjpa clean test to see all tests pass on OpenJPA.
There are two more ignored tests without an alias reference in KEY() which are supposed to work according to the comments in HHH-5396 but do not.
Anyway, this is illegal syntax according to JSR-317 section 4.4.4: the KEY operator accepts an identification variable and not a general path expression.
The two tests with the KEY operator in lower case and in upper case also demonstrate that Hibernate is not case insensitive in this context, as noted by myself and confirmed by Yannick Lazzari in the original issue HHH-5396.
Attached is a test case. Unpack and run mvn clean test to see 2 of 3 tests fail. Run mvn -Popenjpa clean test to see all tests pass on OpenJPA.
There are two more ignored tests without an alias reference in KEY() which are supposed to work according to the comments in
HHH-5396but do not.Anyway, this is illegal syntax according to JSR-317 section 4.4.4: the KEY operator accepts an identification variable and not a general path expression.
The two tests with the KEY operator in lower case and in upper case also demonstrate that Hibernate is not case insensitive in this context, as noted by myself and confirmed by Yannick Lazzari in the original issue
HHH-5396.