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 Type
    Method
    Description
    Finds selected active Tasks ordered by code.
    Finds all Tasks ordered by code.
    Finds a Task by its code.

    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.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

    • findAllByOrderByCodeAsc

      List<TaskEntity> findAllByOrderByCodeAsc()
      Finds all Tasks ordered by code.
      Returns:
      Tasks ordered by code in ascending order
    • findAllByIdInOrderByCodeAsc

      List<TaskEntity> findAllByIdInOrderByCodeAsc(List<Long> ids)
      Finds selected active Tasks ordered by code.
      Parameters:
      ids - persistent identifiers
      Returns:
      matching active Tasks
    • findByCode

      Optional<TaskEntity> findByCode(String code)
      Finds a Task by its code.
      Parameters:
      code - Task code
      Returns:
      matching Task, or an empty optional when none exists