Interface TransportUnitRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<TransportUnit,
,Long> org.springframework.data.jpa.repository.JpaRepository<TransportUnit,
,Long> org.springframework.data.repository.ListCrudRepository<TransportUnit,
,Long> org.springframework.data.repository.ListPagingAndSortingRepository<TransportUnit,
,Long> org.springframework.data.repository.PagingAndSortingRepository<TransportUnit,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<TransportUnit>
,org.springframework.data.repository.Repository<TransportUnit,
,Long> org.springframework.data.repository.history.RevisionRepository<TransportUnit,
Long, Integer>
@Repository
interface TransportUnitRepository
extends org.springframework.data.repository.history.RevisionRepository<TransportUnit,Long,Integer>, org.springframework.data.jpa.repository.JpaRepository<TransportUnit,Long>
A TransportUnitRepository adds particular functionality regarding
TransportUnit
entity classes.- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescriptionfindByActualLocationOrderByActualLocationDate
(Location actualLocation) findByBarcode
(Barcode barcode) findByBarcodeIn
(List<Barcode> barcodes) findByPKey
(String pKey) 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
Methods inherited from interface org.springframework.data.repository.history.RevisionRepository
findLastChangeRevision, findRevision, findRevisions, findRevisions
-
Method Details
-
findByPKey
@Query("select tu from TransportUnit tu where tu.pKey = :pKey") Optional<TransportUnit> findByPKey(@Param("pKey") String pKey) -
findByBarcode
-
findByBarcodeIn
@Query("select tu from TransportUnit tu where tu.barcode in :barcodes") List<TransportUnit> findByBarcodeIn(@Param("barcodes") List<Barcode> barcodes) -
findByActualLocationOrderByActualLocationDate
-