Skip to content

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

Closed
@spring-projects-issues

Description

@spring-projects-issues

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)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions