Package it.univr.passportease.repository
Interface AvailabilityRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Availability,,UUID> org.springframework.data.jpa.repository.JpaRepository<Availability,,UUID> org.springframework.data.jpa.repository.JpaSpecificationExecutor<Availability>,org.springframework.data.repository.ListCrudRepository<Availability,,UUID> org.springframework.data.repository.ListPagingAndSortingRepository<Availability,,UUID> org.springframework.data.repository.PagingAndSortingRepository<Availability,,UUID> org.springframework.data.repository.query.QueryByExampleExecutor<Availability>,org.springframework.data.repository.Repository<Availability,UUID>
@Repository
public interface AvailabilityRepository
extends org.springframework.data.jpa.repository.JpaRepository<Availability,UUID>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<Availability>
Repository for
Availability entity.-
Method Summary
Modifier and TypeMethodDescription@NotNull List<Availability> findAll(@NotNull org.springframework.data.jpa.domain.Specification<Availability> specification) Find theAvailabilityentities that satisfy the givenSpecification.findByRequestId(UUID requestId) findByStatus(Status status) Find the list ofAvailabilityentities that have the given status.findByUser(User user) Find the list ofAvailabilityentities that have the givenUserid.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, delete, exists, findAll, findAll, findBy, findOneMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findAll
@NotNull @NotNull List<Availability> findAll(@NotNull @NotNull org.springframework.data.jpa.domain.Specification<Availability> specification) Find theAvailabilityentities that satisfy the givenSpecification.- Specified by:
findAllin interfaceorg.springframework.data.jpa.repository.JpaSpecificationExecutor<Availability>- Parameters:
specification- must not be null. It is used to filter the results of the query.- Returns:
- a list of
Availabilityentities that satisfy the givenSpecification.
-
findByRequestId
- Parameters:
requestId- the id of theRequestentity.- Returns:
- a list of
Availabilityentities that satisfy the givenSpecification.
-
findByUser
Find the list ofAvailabilityentities that have the givenUserid.- Parameters:
user- theUserentity.- Returns:
- a list of
Availabilityentities of the givenUser.
-
findByStatus
Find the list ofAvailabilityentities that have the given status.- Parameters:
status- the status of theAvailabilityentity.- Returns:
- a list of
Availabilityentities of the given status.
-