Package org.openwms.wms.movements.impl
Interface MovementRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Movement,
,Long> org.springframework.data.jpa.repository.JpaRepository<Movement,
,Long> org.springframework.data.repository.PagingAndSortingRepository<Movement,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<Movement>
,org.springframework.data.repository.Repository<Movement,
Long>
@Repository
public interface MovementRepository
extends org.springframework.data.jpa.repository.JpaRepository<Movement,Long>
A MovementRepository.
- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescriptionfindBypKey
(String pKey) findByTransportUnitBkAndTypeInAndStateIn
(Barcode transportUnitBk, List<MovementType> types, List<DefaultMovementState> states) findByTypeAndStateAndSource
(MovementType type, MovementState state, List<String> sources) 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, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush
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
-
Method Details
-
findBypKey
-
findByTransportUnitBkAndTypeInAndStateIn
List<Movement> findByTransportUnitBkAndTypeInAndStateIn(Barcode transportUnitBk, List<MovementType> types, List<DefaultMovementState> states) -
findByTypeAndStateAndSource
@Query("select m from Movement m where m.type = :type and m.state = :state and (m.sourceLocationGroupName in :sources or m.sourceLocation in :sources or null = :sources) order by m.createDt") List<Movement> findByTypeAndStateAndSource(@Param("type") MovementType type, @Param("state") MovementState state, @Param("sources") List<String> sources)
-