Look at removing references to SessionFactory from various components

Description

Specifically look at Metamodel and Cache.

For Metamodel its not really needed (used for access to services).

For Cache the concern is timing. We really need to split (1) understanding cache access strategy and region that should be used for cacheables and then later actually prime those in the Cache (create the access objects, etc). (see note in org.hibernate.metamodel.model.creation.spi.RuntimeModelCreationProcess#execute).

Related to in regards the same "pattern" (splitting parsing metadata and then acting on that parsed understanding).

Environment

None

Assignee

Steve Ebersole

Reporter

Steve Ebersole

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major
Configure