Interface TaskRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<TaskEntity, Long>, org.springframework.data.jpa.repository.JpaRepository<TaskEntity, Long>, org.springframework.data.repository.ListCrudRepository<TaskEntity, Long>, org.springframework.data.repository.ListPagingAndSortingRepository<TaskEntity, Long>, org.springframework.data.repository.PagingAndSortingRepository<TaskEntity, Long>, org.springframework.data.repository.query.QueryByExampleExecutor<TaskEntity>, org.springframework.data.repository.Repository<TaskEntity, Long>
public interface TaskRepository
extends org.springframework.data.jpa.repository.JpaRepository<TaskEntity, Long>
Provides persistence operations for Tasks.
- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionFinds selected active Tasks ordered by code.Finds all Tasks ordered by code.findByCode(String code) Finds a Task by its code.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
-
findAllByOrderByCodeAsc
List<TaskEntity> findAllByOrderByCodeAsc()Finds all Tasks ordered by code.- Returns:
- Tasks ordered by code in ascending order
-
findAllByIdInOrderByCodeAsc
Finds selected active Tasks ordered by code.- Parameters:
ids- persistent identifiers- Returns:
- matching active Tasks
-
findByCode
Finds a Task by its code.- Parameters:
code- Task code- Returns:
- matching Task, or an empty optional when none exists
-