We're updating the issue view to help you get more done. 

HibernateBundleActivator should not register itself as a PersistenceProvider

Description

In HHH-7942, HibernateBundleActivator extends HibernatePersistenceProvider and registers itself as the provider in the BundleContext. This was initially done to provide a custom JtaPlatform.

To ensure compatibility with pre-existing persistence.xmls, this might not be a good idea. Instead, add the JtaPlatform to the HibernatePersistenceProvider instance and register that instead.

Environment

None

Status

Assignee

Brett Meyer

Reporter

Brett Meyer

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major