Skip to content

Commit

Permalink
optimize template file: UserRepository.java.ejs (jhipster#17278)
Browse files Browse the repository at this point in the history
Co-authored-by: ex_wangxin <wangxinxx@163.com>
  • Loading branch information
jhipsterpro and wangxinxx authored Dec 19, 2021
1 parent 6e01a89 commit 4b7c6e8
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,7 @@ public interface UserRepository extends <% if (databaseTypeSql) { %>JpaRepositor
<%_ if (cacheManagerIsAvailable) { _%>
@Cacheable(cacheNames = USERS_BY_LOGIN_CACHE)
<%_ } _%>
<%_ if (databaseTypeCouchbase) { _%>
@ScanConsistency(query = QueryScanConsistency.REQUEST_PLUS)
<%_ } _%>
default <%= optionalOrMono %><<%= asEntity('User') %>> findOneByLogin(String login) {
return findById(<%= asEntity('User') %>.PREFIX + ID_DELIMITER + login);
}
Expand Down

0 comments on commit 4b7c6e8

Please sign in to comment.