Package web.sportflow.workout
Interface WorkoutRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Workout,,Long> org.springframework.data.jpa.repository.JpaRepository<Workout,,Long> org.springframework.data.repository.ListCrudRepository<Workout,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<Workout,,Long> org.springframework.data.repository.PagingAndSortingRepository<Workout,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<Workout>,org.springframework.data.repository.Repository<Workout,Long>
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexistsById(int id) findById(int id) findByUser(User user) findByUserAndDateBetween(User user, LocalDateTime start, LocalDateTime end) findByUserIdInOrderByDateDesc(List<Long> userIds) 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
-
existsById
boolean existsById(int id) -
findById
-
findByUser
-
findByUserOrderByDateDesc
-
findByUserAndDateBetween
-
findByUserIdInOrderByDateDesc
-
findAllByOrderByDateDesc
-