@NoRepositoryBean public interface UserPermissionRepository<D> extends org.springframework.data.repository.CrudRepository<D,String>, CustomizedUserPermissionRepository<D>
UserPermission
.Modifier and Type | Method and Description |
---|---|
org.springframework.data.domain.Page<D> |
findAllByNameContainingIgnoreCaseAndArchivedFalse(String name,
org.springframework.data.domain.Pageable page)
Finds and returns all entities that are not
UserPermission.archived whose name
contains the given value. |
Optional<D> |
findByIdAndArchivedFalse(String id)
Finds and returns the entity with the given ID if not
UserPermission.archived . |
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findAllById, findById, save, saveAll
createOnlyIfDoesNotExist, replaceOnlyIfLastUpdatedBefore
Optional<D> findByIdAndArchivedFalse(String id)
UserPermission.archived
.id
- the id of the entity to findOptional
containing the entity if found, Optional.empty()
otherwiseorg.springframework.data.domain.Page<D> findAllByNameContainingIgnoreCaseAndArchivedFalse(String name, org.springframework.data.domain.Pageable page)
UserPermission.archived
whose name
contains the given value.name
- the name value to match withpage
- information about which page of results to return from the databaseCopyright © 2021. All rights reserved.