Restore EntityMetamodel constructor to take SessionFactoryImplementor argument instead of PersisterCreationContext.

Description

changed a EntityMetamodel constructor argument from a SessionFactoryImplementor to a PersisterCreationContext.

The argument was changed to PersisterCreationContext go get access to an entity's metamodel, intended to be used by EnhancementHelper.includeInBaseFetchGroup.

The Function<String,Boolean> subclassChecker is passed to:

  • BytecodeEnhancementMetadataPojoImpl.from

  • LazyAttributesMetadata.from

  • EnhancementHelper.includeInBaseFetchGroup

EnhancementHelper.includeInBaseFetchGroup does not use the value passed in for hasSubclassChecker,.

EntityMetamodel constructor be changed back to take a SessionFactoryImplementor, and the hasSubclassChecker argument be removed from BytecodeEnhancementMetadataPojoImpl.from, LazyAttributesMetadata.from, and EnhancementHelper.includeInBaseFetchGroup.

Environment

None

Status

Assignee

Gail Badner

Reporter

Gail Badner

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.3.10

Components

Priority

Major