Interface OrderTemplateRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<OrderTemplate,Long>, org.springframework.data.jpa.repository.JpaRepository<OrderTemplate,Long>, org.springframework.data.repository.ListCrudRepository<OrderTemplate,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<OrderTemplate,Long>, org.springframework.data.repository.PagingAndSortingRepository<OrderTemplate,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<OrderTemplate>, org.springframework.data.repository.Repository<OrderTemplate,Long>

public interface OrderTemplateRepository extends org.springframework.data.jpa.repository.JpaRepository<OrderTemplate,Long>
Data Access Object for the Workflow class
Author:
Dr. Thomas Bassler
  • Method Summary

    Modifier and Type
    Method
    Description
    Get all order templates for the given mission
    Get the order template with the given mission and name

    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

    • findByMissionCode

      @Query("select ot from OrderTemplate ot where ot.mission.code = ?1") List<OrderTemplate> findByMissionCode(String missionCode)
      Get all order templates for the given mission
      Parameters:
      missionCode - the mission code
      Returns:
      the list of order templates for this mission
    • findByMissionCodeAndName

      @Query("select ot from OrderTemplate ot where ot.mission.code = ?1 and ot.name = ?2") OrderTemplate findByMissionCodeAndName(String missionCode, String name)
      Get the order template with the given mission and name
      Parameters:
      missionCode - the mission code
      name - the order template name
      Returns:
      the unique order template identified by the search criteria