-
Mar 18th, 2011, 05:32 AM
#1
[spring-data-jpa] support "with" in query creation from method names
Hello spring-data-jpa users,
For those of us not using open-session-in-view pattern, could query creation from method names be extended so that e.g. method named findByIdWithRoles on a UserRepository would return User with roles initialized/eagerly-fetched, where a query would be equivalent to "@Query("FROM User u LEFT JOIN FETCH u.roles r")".
Regards,
Stevo.
Stevo Slavic
Tags for this Thread
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