Package de.dlr.proseo.model.dao
Interface MonProductProductionMonthRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<MonProductProductionMonth,,Long> org.springframework.data.jpa.repository.JpaRepository<MonProductProductionMonth,,Long> org.springframework.data.repository.ListCrudRepository<MonProductProductionMonth,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<MonProductProductionMonth,,Long> org.springframework.data.repository.PagingAndSortingRepository<MonProductProductionMonth,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<MonProductProductionMonth>,org.springframework.data.repository.Repository<MonProductProductionMonth,Long>
public interface MonProductProductionMonthRepository
extends org.springframework.data.jpa.repository.JpaRepository<MonProductProductionMonth,Long>
Data Access Object for the MonProductProductionMonth class
- Author:
- Ernst Melchinger
-
Method Summary
Modifier and TypeMethodDescriptionfindByMissionCodeAndProductionTypeAndDateTimeBetween(long missionId, String mpt, Instant timeFrom, Instant timeTo) Get a list of productsfindByProductionTypeAndDatetime(long missionId, String mpt, Instant datetime) Get a list of productsGet a list of productsMethods 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
-
findLastDatetime
Get a list of products- Returns:
- a list of products satisfying the search criteria
-
findByProductionTypeAndDatetime
@Query("select p from MonProductProductionMonth p where p.mission.id = ?1 and p.productionType = ?2 and p.datetime = ?3") List<MonProductProductionMonth> findByProductionTypeAndDatetime(long missionId, String mpt, Instant datetime) Get a list of products- Parameters:
missionId- the mission idmpt- the production typedatetime- the datetime- Returns:
- a list of products satisfying the search criteria
-
findByMissionCodeAndProductionTypeAndDateTimeBetween
@Query("select p from MonProductProductionMonth p where p.mission.id = ?1 and p.productionType = ?2 and p.datetime >= ?3 and p.datetime < ?4") List<MonProductProductionMonth> findByMissionCodeAndProductionTypeAndDateTimeBetween(long missionId, String mpt, Instant timeFrom, Instant timeTo) Get a list of products- Parameters:
missionId- the mission idmpt- the production typetimeFrom- the earliest datetimetimeTo- the latest datetime- Returns:
- a list of products satisfying the search criteria
-