Results 1 to 2 of 2

Thread: <data:repositories> alternative for Java-based configurations

  1. #1

    Default <data:repositories> alternative for Java-based configurations

    Regarding Spring Data JPA:
    Is there a way to scan a base package and create repository instances from a @Configuration class? In XML we use <data:repositories>, but I think a @DataRepositories annotation alternative would be very nice.

  2. #2
    Join Date
    Apr 2006
    Location
    Dresden, Germany
    Posts
    483

    Default

    Currently you're stuck with creating a bean instance yourself by using JpaRepositoryFactory programmatically. As already described in [0] we're looking into the annotation driven approach. The main concern here is how not to force users to upgrade to 3.1 but we'll work that out.

    [0] http://forum.springsource.org/showthread.php?108508

Posting Permissions

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