Adjust the 2nd-Cache SPIs to better reflect supported uses

Description

Mainly this is to pull out the caching SPI changes proposed on [1] into its own Jira.

[1] Specifically the comment https://hibernate.atlassian.net/browse/HHH-10707?focusedCommentId=84079&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-84079


If we end up implementing these other changes, here are some others ideas I'd like to do at the same time (but not really worth making on their own):

  • Rename org.hibernate.cache.spi.access.RegionAccessStrategy to just RegionAccess. IMO the "Strategy" part adds no value. Similarly, renames its specializations:

    • org.hibernate.cache.spi.access.EntityRegionAccessStrategy -> EntityRegionAccess.

    • org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy ->NaturalIdRegionAccess

  • org.hibernate.cache.spi.access.CollectionRegionAccessStrategy ->CollectionRegionAccess.

  • Remove the various #toMap methods

Environment

None

Assignee

Steve Ebersole

Reporter

Steve Ebersole

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major
Configure