Package org.openiam.esb.repository
Interface RoleAttributeRepository
-
- All Superinterfaces:
AbstractEntityRepository<RoleAttributeEntity,String>
,AbstractKeyEntityRepository<RoleAttributeEntity,String>
,AbstractKeyNameEntityRepository<RoleAttributeEntity,String>
,org.springframework.data.repository.CrudRepository<RoleAttributeEntity,String>
,org.springframework.data.jpa.repository.JpaRepository<RoleAttributeEntity,String>
,org.springframework.data.jpa.repository.JpaSpecificationExecutor<RoleAttributeEntity>
,org.springframework.data.repository.PagingAndSortingRepository<RoleAttributeEntity,String>
,org.springframework.data.repository.query.QueryByExampleExecutor<RoleAttributeEntity>
,org.springframework.data.repository.Repository<RoleAttributeEntity,String>
public interface RoleAttributeRepository extends AbstractKeyNameEntityRepository<RoleAttributeEntity,String>
This is repository for working with RoleAttribute- Author:
- Andrey Lezhebokov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<RoleAttributeEntity>
findByRoleId(String id)
Get all RoleAttribute by RoleIdList<RoleAttributeEntity>
findByRoleIdAndMetadataElementIds(String roleId, Collection<String> metadataElementIds)
-
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
-
findByRoleId
List<RoleAttributeEntity> findByRoleId(String id)
Get all RoleAttribute by RoleId- Parameters:
id
-- Returns:
-
findByRoleIdAndMetadataElementIds
@Query("SELECT m FROM RoleAttributeEntity m WHERE m.role.id=:roleId AND m.metadataElementId IN (:metadataElementIds)") List<RoleAttributeEntity> findByRoleIdAndMetadataElementIds(@Param("roleId") String roleId, @Param("metadataElementIds") Collection<String> metadataElementIds)
-
-