Skip to content

Commit

Permalink
Update generators/entity-server/templates/src/main/java/package/repos…
Browse files Browse the repository at this point in the history
…itory/EntityRepository.java.ejs

Co-authored-by: Marcelo Shima <marceloshima@gmail.com>
  • Loading branch information
gkysaad and mshima committed Aug 23, 2021
1 parent 561e5f3 commit a2357cb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -119,7 +119,7 @@ public interface <%= entityClass %>Repository extends <% if (databaseTypeSql) {
@Query("{}")
List<<%= persistClass %>> findAllWithEagerRelationships();
@Query("{}")
@Query("{'id': ?0}")
Optional<<%= persistClass %>> findOneWithEagerRelationships(<%= primaryKey.type %> id);
<%_
}
Expand Down

0 comments on commit a2357cb

Please sign in to comment.