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.ListCrudRepository<Movement,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<Movement,,Long> org.springframework.data.repository.PagingAndSortingRepository<Movement,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<Movement>,org.springframework.data.repository.Repository<Movement,Long>
@Public
@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, 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
-
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)
-