Community
Participate
Working Groups
Consider if Entity A has a Map of embeddable B, and B has a field called "myState". Eg: @Entity public class A { ... @ElementCollection Map<String,B> myMap; ... } @Embeddable public class B { ... String myState; ... } then the following JP QL generates an error: select b.myState from A a join a.myMap b where KEY(b) = 'keyString' See http://hwellmann.blogspot.com/2010/07/jpa-20-querying-map.html for concrete details.
Tested it and it works now. My guess it was the same issue preventing any element collections from working that I fixed.
See, Bug#314025
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink