-
Jun 17th, 2011, 07:20 AM
#1
<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.
-
Jun 18th, 2011, 01:19 AM
#2
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
-
Forum Rules