Interface JaversGlobalIdRepository

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

@Repository public interface JaversGlobalIdRepository extends org.springframework.data.jpa.repository.JpaRepository<JvGlobalIdEntity,Long>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     

    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

    • deleteByIdIn

      @Modifying @Query("DELETE FROM JvGlobalIdEntity e WHERE e.id IN (:ids)") void deleteByIdIn(@Param("ids") Collection<Long> ids)
    • findAllByEntityIds

      @Query(value="SELECT globalIdTable.* FROM (SELECT global_id_pk FROM jv_global_id WHERE local_id in :entityIds) globalIdTableByEntity, jv_global_id globalIdTable WHERE globalIdTableByEntity.global_id_pk = globalIdTable.owner_id_fk OR globalIdTableByEntity.global_id_pk = globalIdTable.global_id_pk", nativeQuery=true) List<JvGlobalIdEntity> findAllByEntityIds(@Param("entityIds") Set<String> entityIds)