Package de.dlr.proseo.model.dao
Schnittstelle MonProductProductionHourRepository
- Alle Superschnittstellen:
org.springframework.data.repository.CrudRepository<MonProductProductionHour,
,Long> org.springframework.data.jpa.repository.JpaRepository<MonProductProductionHour,
,Long> org.springframework.data.repository.PagingAndSortingRepository<MonProductProductionHour,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<MonProductProductionHour>
,org.springframework.data.repository.Repository<MonProductProductionHour,
Long>
@Repository
public interface MonProductProductionHourRepository
extends org.springframework.data.jpa.repository.JpaRepository<MonProductProductionHour,Long>
Data Access Object for the MonProductProductionHour class
- Autor:
- Ernst Melchinger
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfindByMissionCodeAndProductionTypeAndDateTimeBetween
(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 productsVon Schnittstelle geerbte Methoden org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
Von Schnittstelle geerbte Methoden org.springframework.data.jpa.repository.JpaRepository
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
Von Schnittstelle geerbte Methoden org.springframework.data.repository.PagingAndSortingRepository
findAll
Von Schnittstelle geerbte Methoden org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findOne
-
Methodendetails
-
findLastDatetime
Get a list of products- Gibt zurück:
- a list of products satisfying the search criteria
-
findByProductionTypeAndDatetime
@Query("select p from MonProductProductionHour p where p.mission.id = ?1 and p.productionType = ?2 and p.datetime = ?3") List<MonProductProductionHour> findByProductionTypeAndDatetime(long missionId, String mpt, Instant datetime) Get a list of products- Parameter:
missionId
- the mission idmpt
- the production typedatetime
- the datetime- Gibt zurück:
- a list of products satisfying the search criteria
-
findByMissionCodeAndProductionTypeAndDateTimeBetween
@Query("select p from MonProductProductionHour p where p.mission.id = ?1 and p.productionType = ?2 and p.datetime >= ?3 and p.datetime < ?4") List<MonProductProductionHour> findByMissionCodeAndProductionTypeAndDateTimeBetween(long missionId, String mpt, Instant timeFrom, Instant timeTo) Get a list of products- Parameter:
missionId
- the mission idmpt
- the production typetimeFrom
- the earliest datetimetimeTo
- the latest datetime- Gibt zurück:
- a list of products satisfying the search criteria
-