Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-1591

@Primary annotation not honored

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.13.23 (Ingalls SR23), 2.1.11 (Lovelace SR11), 2.2 GA (Moore)
    • Component/s: Repositories
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            olivergierke Oliver Drotbohm
            Reporter:
            olivergierke Oliver Drotbohm
            Last updater:
            Mark Paluch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: