Results 1 to 2 of 2

Thread: Spring 3.1 Java Config and Spring Data JPA

Hybrid View

  1. #1

    Default Spring 3.1 Java Config and Spring Data JPA

    Hi all,

    I'm using Spring 3.1 with Java Configuration (Without) XML, has some workaround to get Repositories working without using <jpa:repositories /> on xml configuration?

    I see that already exists a JIRA for Java Config (https://jira.springsource.org/browse/DATAJPA-69)

    Best regards

  2. #2

    Default

    You can now use the annotation @EnableJpaRepositories("some.root.package") .

    For example:
    Code:
    @Configuration
    @EnableTransactionManagement(proxyTargetClass = true)
    @EnableJpaRepositories("some.root.package")
    @ComponentScan(basePackages = { "maybe.another.root.package" })
    public class SystemConfiguration {
    ...
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •