Community
Participate
Working Groups
Through JSR 338 the JPA specification will add support for "treating" a joined attribute as a subclass of the attribute type for the purpose of defining a Query expression. Support in both JPQL and Criteria API is required.
The Specification should be reviewed for requirements but a key point is this function is a join to the subclass table and any superclass results are eliminated from the result
Created attachment 224244 [details] POC
Created attachment 226803 [details] Criteria API support and test cases
Created attachment 232259 [details] proposed fix and test changes
Created attachment 232355 [details] proposed fix and test changes Checked into main and 2.5.1
Fix checked in supports joined and single table inheritance. Table per class is not supported and will result in exceptions stating the cast class does not use inheritance - this is due to Table per class support using an interface policy instead of an inheritance policy
*** Bug 410406 has been marked as a duplicate of this bug. ***
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink