Uploaded image for project: 'Spring Data JPA'
  1. Spring Data JPA
  2. DATAJPA-112

jpa:repositories changes @Repository objects into proxies. Autowiring fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Works as Designed
    • Affects Version/s: 1.1 M1
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      When activating jpa:repositories in the context the @Repository annotated objects get somehow proxied and spring is unable to autowire them.
      Please have a look at the demo project attached. There you will find a failing test.
      If you change the @Repository annotation of the SelectModule class into @Component the testcase is working. It is also working if you remove jpa:repositores from the text-context.xml.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              olivergierke Oliver Drotbohm
              Reporter:
              nitegate Adrian
              Last updater:
              Trevor Marshall
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: