public interface UserRepository extends org.springframework.data.repository.CrudRepository<UserEntity,String>
int
deactivateAllServiceAccounts()
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findAllById, findById, save, saveAll
@Modifying @Query(value="UPDATE UserEntity u SET u.active = false WHERE u.serviceAccount = true") int deactivateAllServiceAccounts()
Copyright © 2020. All rights reserved.