SAP NetWeaver AS provides a JPA 2 compliant container from 7.5 SP03 onwards (see [SAP NetWeaver 7.5 SP03 release notes|https://help.sap.com/saphelp_ewm94/helpdata/en/31/776ba3e16949f88d57499702bbc6da/frameset.htm] and [SAP Help|https://help.sap.com/saphelp_ewm94/helpdata/en/56/026429a9474e34b7ad5e8aa020c813/frameset.htm]).
However, the SAP JPA provider does not support JPA 2. Therefore we decided to use Hibernate as JPA provider for our project.
Due to the removal of TransactionManagerLookup in Hibernate 4.3 we need to provide Hibernate with a JtaPlatform for SAP NetWeaver that locates a TransactionManager and a UserTransaction via JNDI-lookup just as there are JtaPlatforms for other application servers such as JBoss, WebLogic, WebSphere and so forth.
By compiling hibernate-orm with our additional JtaPlatform we were able to deploy our JPA 2 application to SAP NetWeaver 7.5 SP06 and tested various aspects of JPA 2 successfully.
We will provide a PR for this issue via Github shortly. |
|