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 theAvailability
entities that satisfy the givenSpecification
.findByRequestId
(UUID requestId) findByStatus
(Status status) Find the list ofAvailability
entities that have the given status.findByUser
(User user) Find the list ofAvailability
entities that have the givenUser
id.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, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush
Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, delete, exists, findAll, findAll, findBy, findOne
Methods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAll
Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAll
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 Details
-
findAll
@NotNull @NotNull List<Availability> findAll(@NotNull @NotNull org.springframework.data.jpa.domain.Specification<Availability> specification) Find theAvailability
entities that satisfy the givenSpecification
.- Specified by:
findAll
in 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
Availability
entities that satisfy the givenSpecification
.
-
findByRequestId
- Parameters:
requestId
- the id of theRequest
entity.- Returns:
- a list of
Availability
entities that satisfy the givenSpecification
.
-
findByUser
Find the list ofAvailability
entities that have the givenUser
id.- Parameters:
user
- theUser
entity.- Returns:
- a list of
Availability
entities of the givenUser
.
-
findByStatus
Find the list ofAvailability
entities that have the given status.- Parameters:
status
- the status of theAvailability
entity.- Returns:
- a list of
Availability
entities of the given status.
-