BAEL-2502

This commit is contained in:
Ekaterina Galkina
2019-02-14 15:46:06 +05:00
committed by ashleyfrieze
parent f29191df67
commit dec56b6d0f
2 changed files with 24 additions and 0 deletions
@@ -70,4 +70,7 @@ public interface UserRepository extends JpaRepository<User, Integer> , UserRepos
@Modifying
@Query(value = "UPDATE Users u SET status = ? WHERE u.name = ?", nativeQuery = true)
int updateUserSetStatusForNameNativePostgres(Integer status, String name);
@Query(value = "SELECT u FROM User u WHERE u.name IN :names")
List<User> findUserByNameList(@Param("names") Collection<String> names);
}