Announcement Announcement Module
Collapse
No announcement yet.
[spring-data-jpa] support "with" in query creation from method names Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • [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.
Working...
X