We ported from Hibernate 3.x to 5.2, as it promised SAP Netweaver 7.5 support due to https://hibernate.atlassian.net/browse/HHH-11546 .
SAP Netweaver is a JPA 1.0 or JPA 2.0 (with some tricks) compatible EE5 application server, not JPA 2.1.
We are not using JPA at all but plain hibernate calls. Our application is working fine in Widlfy, but with setting
“SapNetWeaver” as hibernate.transaction.jta.platform
and deplyoying to SAP Netweaver 7.5 patchlevel 16 we get
caused by: java.lang.NoSuchMethodError: org.hibernate.engine.spi.SessionFactoryImplementor.getProperties()Ljava/util/Map;
at org.hibernate.internal.CacheImpl.(CacheImpl.java:71)
at org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:28)
at org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:20)
at org.hibernate.service.internal.SessionFactoryServiceRegistryImpl.initiateService(SessionFactoryServiceRegistryImpl.java:59)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:259)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:233)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:210)
at org.hibernate.service.internal.SessionFactoryServiceRegistryImpl.getService(SessionFactoryServiceRegistryImpl.java:80)
at org.hibernate.internal.SessionFactoryImpl.(SessionFactoryImpl.java:243)
at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:462)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:710)
where hibernate ends up looking for some methods not available in JPA 1.0 (see https://forum.hibernate.org/viewtopic.php?p=2490425 )
So how was support for Netweaver tested in Hibernate 5.X? Was there any testsuite? Netweaver is a JPA 2.0 App Server, how to make a hibernate standalone (non-JPA) approach work nevertheless, is it possible?
Otherwise HHH-11546 should be marked as not working as it is not supporting netweaver, is it?
Thanks a lot for your input,
Lars