Schnittstelle MonProductProductionDayRepository

Alle Superschnittstellen:
org.springframework.data.repository.CrudRepository<MonProductProductionDay,Long>, org.springframework.data.jpa.repository.JpaRepository<MonProductProductionDay,Long>, org.springframework.data.repository.PagingAndSortingRepository<MonProductProductionDay,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<MonProductProductionDay>, org.springframework.data.repository.Repository<MonProductProductionDay,Long>

@Repository public interface MonProductProductionDayRepository extends org.springframework.data.jpa.repository.JpaRepository<MonProductProductionDay,Long>
Data Access Object for the MonProductProductionDay class
Autor:
Ernst Melchinger
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    Get a list of products
    findByProductionTypeAndDatetime(long missionId, String mpt, Instant datetime)
    Get a list of products
    Get a list of products

    Von 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

      @Query("select max(d.datetime) from MonProductProductionDay d") Instant findLastDatetime()
      Get a list of products
      Gibt zurück:
      a list of products satisfying the search criteria
    • findByProductionTypeAndDatetime

      @Query("select p from MonProductProductionDay p where p.mission.id = ?1 and p.productionType = ?2 and p.datetime = ?3") List<MonProductProductionDay> findByProductionTypeAndDatetime(long missionId, String mpt, Instant datetime)
      Get a list of products
      Parameter:
      missionId - the mission id
      mpt - the production type
      datetime - the datetime
      Gibt zurück:
      a list of products satisfying the search criteria
    • findByMissionCodeAndProductionTypeAndDateTimeBetween

      @Query("select p from MonProductProductionDay p where p.mission.id = ?1 and p.productionType = ?2 and p.datetime >= ?3 and p.datetime < ?4") List<MonProductProductionDay> findByMissionCodeAndProductionTypeAndDateTimeBetween(long missionId, String mpt, Instant timeFrom, Instant timeTo)
      Get a list of products
      Parameter:
      missionId - the mission id
      mpt - the production type
      timeFrom - earliest datetime
      timeTo - latest datetime
      Gibt zurück:
      a list of products satisfying the search criteria