commit | 653b5dff420f2e27b21fffbbe37978be3369a57c | [log] [tgz] |
---|---|---|
author | David Minsky <david.minsky@oracle.com> | Fri Oct 14 13:09:04 2016 -0400 |
committer | David Minsky <david.minsky@oracle.com> | Fri Oct 14 13:09:04 2016 -0400 |
tree | a682b85e86fcb3f927008a63231070d166a0925a | |
parent | 7ced2678f09311660132fa38f3c06a79c89775cc [diff] |
Fix for Bug 453865 - NullPointerException when using ORDER BY on a joined element collection - NPE occurs when attempting to access a null ClassDescriptor on a DirectCollectionMapping, using the default impl of getOrderByNormalizedExpressions on ForeignReferenceMapping - Fix: In DirectCollectionMapping, added the default DatabaseMapping implementation for the public List<Expression> getOrderByNormalizedExpressions(Expression) method to return null, as a DirectCollectionMapping does not use a ClassDescriptor, by design - Testing: added regression tests testJoinWithOrderByOnElementCollectionList and testJoinWithOrderByOnElementCollectionMap to AdvancedJPAJunitTest Reviewed-by: Lukas Jungmann <lukas.jungmann@oracle.com> Signed-off-by: David Minsky <david.minsky@oracle.com>
The EclipseLink project's goal is to provide a complete persistence framework that is both comprehensive and universal. It will run in any Java environment and read and write objects to virtually any type of data source, including relational databases, XML, JSON, or EIS systems. EclipseLink will focus on providing leading edge support, including advanced feature extensions, for the dominant persistence standards for each target data source; Java Persistence API (JPA) for relational databases, Java API for XML Binding (JAXB) for XML, Java Connector Architecture (JCA) for EIS and other types of legacy systems, and Service Data Objects (SDO).