Package de.dlr.proseo.model.dao
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 TypeMethodDescriptionfindByMissionCode(String missionCode) Get all order templates for the given missionfindByMissionCodeAndName(String missionCode, String name) Get the order template with the given mission and nameMethods 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
-
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 codename- the order template name- Returns:
- the unique order template identified by the search criteria
-