Package org.openiam.esb.repository
Interface ProfilePictureRepository
-
- All Superinterfaces:
AbstractEntityRepository<ProfilePictureEntity,String>,AbstractKeyEntityRepository<ProfilePictureEntity,String>,AbstractKeyNameEntityRepository<ProfilePictureEntity,String>,org.springframework.data.repository.CrudRepository<ProfilePictureEntity,String>,org.springframework.data.jpa.repository.JpaRepository<ProfilePictureEntity,String>,org.springframework.data.jpa.repository.JpaSpecificationExecutor<ProfilePictureEntity>,org.springframework.data.repository.PagingAndSortingRepository<ProfilePictureEntity,String>,org.springframework.data.repository.query.QueryByExampleExecutor<ProfilePictureEntity>,org.springframework.data.repository.Repository<ProfilePictureEntity,String>
@Repository public interface ProfilePictureRepository extends AbstractKeyNameEntityRepository<ProfilePictureEntity,String>
This is repository for working with ProfilePictureEntity- Author:
- Sanchir Kartiev
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteByUserId(String userId)List<ProfilePictureEntity>findByUserIdIn(Collection<String> userIds)ProfilePictureEntityfindOneByUserId(String userId)booleanisPictureExistsForUser(String userId)-
Methods inherited from interface org.openiam.esb.repository.AbstractEntityRepository
getPageable
-
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
-
-
-
-
Method Detail
-
findByUserIdIn
List<ProfilePictureEntity> findByUserIdIn(Collection<String> userIds)
-
findOneByUserId
ProfilePictureEntity findOneByUserId(String userId)
-
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)
-
-