Skip to content

Instantly share code, notes, and snippets.

@yannbriancon
Created May 2, 2020 17:46
Show Gist options
  • Save yannbriancon/da7d8eb65fb4c246168e792c757b92b6 to your computer and use it in GitHub Desktop.
Save yannbriancon/da7d8eb65fb4c246168e792c757b92b6 to your computer and use it in GitHub Desktop.
JPA query with entity graph
@EntityGraph(attributePaths = {"author"})
List<Message> getAllBy();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment