Handle RegionFactory.buildNaturalIdRegion throwing UnsupportedOperationException

Description

If an implementation of RegionFactory throws UnsupportedOperationException when buildNaturalIdRegion is called SessionFactoryImpl should handle this case, log a warning and disable second level naturalId caching.

Environment

None

Assignee

Eric Dalquist

Reporter

Eric Dalquist

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure