Skip to content

Avoid eagerly scanning all JPA managed entities in JpaMetamodelMappingContextFactoryBean [DATAJPA-1392] #1711

Open
@spring-projects-issues

Description

@spring-projects-issues

Oliver Drotbohm opened DATAJPA-1392 and commented

JpaMetamodelMappingContextFactoryBean scans the Metamodels and adds all managed types to the initial entity set of the JpaMetamodelMappingContext. This causes JpaPersistentEntity instances to be created for all those types, no matter whether they're actually of interest to repositories or not. We can rather rely on the instances being added on the fly


Affects: 2.1 RC1 (Lovelace), 1.11.14 (Ingalls SR14), 2.0.9 (Kay SR9)

Referenced from: commits 463174c, aac7b11, 6d1bc47, 3a03a66, f2d2780, a410b2e

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions