Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Register reflection configuration for custom Spring Data repository base class. #1383

Merged
merged 2 commits into from
Dec 20, 2021

Conversation

christophstrobl
Copy link
Contributor

This PR makes sure to read a potentially given custom repository base class implementation and register reflection configuration for it.

Resolves: #1368

…ase class.

This commit makes sure to read a potentially given custom repository base class implementation and register reflection configuration for it.
return;
}

registry.reflection().forType(configuration.getCustomRepositoryBaseClass()).withAccess(TypeAccess.DECLARED_CONSTRUCTORS, TypeAccess.DECLARED_METHODS);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about adding TypeAccess.PUBLIC_METHODS in order to have also the inherited ones?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just public ones should actually do.

@sdeleuze sdeleuze merged commit db62223 into spring-attic:main Dec 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Refine @EnableJpaRepositories support
2 participants