Interface LocationRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<LocationEO,Long>, org.springframework.data.jpa.repository.JpaRepository<LocationEO,Long>, org.springframework.data.repository.PagingAndSortingRepository<LocationEO,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<LocationEO>, org.springframework.data.repository.Repository<LocationEO,Long>

public interface LocationRepository extends org.springframework.data.jpa.repository.JpaRepository<LocationEO,Long>
A LocationRepository.
Author:
Heiko Scherrer
  • Method Summary

    Modifier and Type
    Method
    Description
     
    findByForeignPKeyAndDeleted(String foreignPKey, boolean markForDeletion)
     
     

    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

    • findByLocationId

      Optional<LocationEO> findByLocationId(String locationId)
    • findByForeignPKeyAndDeleted

      @Query("from LocationEO l where l.foreignPKey = :foreignPKey and l.markForDeletion = :markForDeletion") Optional<LocationEO> findByForeignPKeyAndDeleted(String foreignPKey, boolean markForDeletion)
    • findByForeignPKey

      Optional<LocationEO> findByForeignPKey(String foreignPKey)