Bug 400456 - NPE on entity-listeners XML metadata merging

Reviewed: Tom Ware

Tests: N/A mapping file change made to expose there error. With fix in place all tests pass.
Added version validation for JPA-RS
Bug 338610 - JPA 2.1 Functionality for Java EE 7 (JSR-338)

Reviewed: Chris Delahunt

Update the namespace support for persistence.xml
Bug 338610 - JPA 2.1 Functionality for Java EE 7 (JSR-338)

Reviewed: Chris Delahunt
Fix for Bug 396791 - JPA-RS: partner should be treated as a query
parameter
Fix for bug 400952
Bug 397772 - JPA 2.1 Entity Graph Support
Updates for polymorphic entity graph support
Merge branch 'master' into hana-master
Fix ArrayIndexOutOfBoundsException in CascadeDeletesJUnitTestSuite

The test CascadeDeletesJUnitTestSuite.testDeletePrivateOwned fails
occasionally with an ArrayIndexOutOfBoundsException. This happens when
the test picks a different related entity from a OneToMany relationship
that the test actually intends to.
Adding an @OrderBy annotation to the relationship guarantees that always
the desired entity is retrieved.

Bug 401413

Signed-off-by: Sabine Heider <sabine.heider@sap.com>