Bug 397619 - SQL generation issue with JPQL querying on a table/entity with subqueries querying on the same table/entity.

Reviewed By: James Sutherland
Bug 350487 - JPA 2.1 Specification defined support for Stored Procedure Calls

Reviewed: Tom Ware

Patch adds XML tests of named stored procedure queries and updates our eclipselink_orm_2_5.xsd to reflect the orm_2_1.xsd
make changes in antbuild.xml to be able to run jpa21 tests on server(GlassFish 4 now), code is reviewed by Edwin Tang.
Fixed WDF and SDO test failures on WebLogic server
Bug 389090 - JPA 2.1 DDL Generation Support

Reviewed: Tom Ware

Includes: Updates to the DDL generation per the spec with more logging messages and exceptions.

New tests added to DDLTestSuite.java
Resolves Bug398840 (Need annotation and metadata support for Oracle Object and VArray types)
Part#2: Resolves Bug398840 (Need annotation and metadata support for Oracle Object and VArray types)
add <generate-report> for jpa21 sessionbean model, fix compile issue for "server-test-xml-composite-advanced" and "server-test-xml-extended-composite-advanced"
Revert changes to JPA test.properties
Fix for Bug 392745 - JPA-RS: Provide a mechanism for versioning our JPA-RS
API
Fix Oracle Nosql test failures
Merge branch 'master' of ssh://git.eclipse.org/gitroot/eclipselink/eclipselink.runtime
Fix Oracle Nosql test failures
Added test cases for Bug 393879 - JPA-RS: Need to have a mechanism to
differentiate empty collections from lazy loaded collections for 1-to-N
relationships
Bug 350516 - Deploying PU: NPE in EntityAccessor.discoverMappedSuperclassesAndInheritanceParents

Reviewed: Tom Ware

Tests: N/A
Bug 390785 - JPA-RS: Composite Persistence Unit Components should not be
visible
Git main push: Bug#250746 - foreign key indexes

https://bugs.eclipse.org/bugs/show_bug.cgi?id=250746

Changes:
- Added "eclipselink.ddl-generation.index-foreign-keys" persistence unit property to auto generate indexes on foreign keys.
- Changed to only auto-enable query cache for non-isolated descriptors.
- Added shouldCreateIndicesOnForeignKeys option to DatabasePlatform.
- Added getDropCascadeString() to DatabasePlatform to allow cascaded table drops. (supported in Oracle, PostgreSQL)
- Added session argument to SessionProfiler occurred() callback.
- Updated names of crud queries.
- Added ClientSessionReleases and UnitOfWorkReleases profiling events.
- Improved exception handling in AbstractSynchronizationListener.
remove file maintained in eclipselink.releng
Fix for Bug 398970 - MOXy Footprint Reduction - Refactor XMLContext

Code reviewed by:  Denise Smith

Fix Details
- Created new class o.e.p.internal.oxm.Context
- Changed o.e.p.oxm.XMLContext to extend the new Context class
- Updated references where necessary
Fix part 1 for Bug# 399148 (DBWS server test - LegacySimpleTableServiceTestSuite failed on all app servers)