Interface ProfilePictureRepository

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void deleteByUserId​(String userId)  
      List<ProfilePictureEntity> findByUserIdIn​(Collection<String> userIds)  
      ProfilePictureEntity findOneByUserId​(String userId)  
      boolean isPictureExistsForUser​(String userId)  
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

        count, exists, findAll, findAll, findAll, findOne
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll
      • Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

        count, exists, findAll, findBy, findOne
    • Method Detail

      • deleteByUserId

        @Modifying
        void deleteByUserId​(String userId)
      • isPictureExistsForUser

        @Query("SELECT case when (count(pu.id) > 0) then true else false end FROM ProfilePictureEntity pu JOIN pu.user u WHERE u.id=:userId")
        boolean isPictureExistsForUser​(@Param("userId")
                                       String userId)