Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Primary annotation not honored [DATACMNS-1591] #2019

Closed
spring-projects-issues opened this issue Oct 15, 2019 · 0 comments
Closed

@Primary annotation not honored [DATACMNS-1591] #2019

spring-projects-issues opened this issue Oct 15, 2019 · 0 comments
Assignees
Labels
in: repository Repositories abstraction type: bug A general bug

Comments

@spring-projects-issues
Copy link

Oliver Drotbohm opened DATACMNS-1591 and commented

While the @Primary annotation is considered by the the bean definition obtained by the repository interface scan, it never actually makes it into the bean definition for the repository factory as that gets set up based on the information exposed via RepositoryConfiguration and the latter currently doesn't expose primary semantics.

This causes issues in case multiple extensions of a repository interface exist (or a base type and and extension) and there is code that is just supposed to work with the base type.


Affects: 1.13.23 (Ingalls SR23), 2.1.11 (Lovelace SR11), 2.2 GA (Moore)

Referenced from: pull request #410

Backported to: 2.2.1 (Moore SR1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: repository Repositories abstraction type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants