Package it.univr.passportease.repository
Interface ReservationRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Availability,,UUID> org.springframework.data.jpa.repository.JpaRepository<Availability,,UUID> 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 ReservationRepository
extends org.springframework.data.jpa.repository.JpaRepository<Availability,UUID>
Repository for the
Availability entity.-
Method Summary
Modifier and TypeMethodDescriptionfindByUserId(UUID id) Finds all theAvailabilityentities associated to the given user.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.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
-
findByUserId
Finds all theAvailabilityentities associated to the given user.- Parameters:
id- the id of the user- Returns:
- the list of
Availabilityentities associated to the given user
-