Interface PolicyDataRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<PolicyData,​String>, org.springframework.data.jpa.repository.JpaRepository<PolicyData,​String>, org.springframework.data.repository.PagingAndSortingRepository<PolicyData,​String>, org.springframework.data.repository.query.QueryByExampleExecutor<PolicyData>, org.springframework.data.repository.Repository<PolicyData,​String>

    public interface PolicyDataRepository
    extends org.springframework.data.jpa.repository.JpaRepository<PolicyData,​String>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Optional<PolicyData> findByPolicyId​(String policyId)  
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll
      • Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

        count, exists, findAll, findOne
    • Method Detail

      • findByPolicyId

        @Cacheable(value="policy_data",
                   unless="#result == null")
        @Query("select pd from PolicyData pd where pd.policyId = :policyId")
        Optional<PolicyData> findByPolicyId​(@Param("policyId")
                                            String policyId)