| Summary: | JP QL breaks when embedded values of a Map | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Michael Keith <michael.keith> |
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P2 | CC: | iimuhin, jamesssss, tom.ware |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
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 The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
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.