Interface ContractPropertiesRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<ContractPropertiesEntity,Long>, org.springframework.data.querydsl.QuerydslPredicateExecutor<ContractPropertiesEntity>, org.springframework.data.repository.Repository<ContractPropertiesEntity,Long>

public interface ContractPropertiesRepository extends org.springframework.data.repository.CrudRepository<ContractPropertiesEntity,Long>, org.springframework.data.querydsl.QuerydslPredicateExecutor<ContractPropertiesEntity>
The Interface ContractPropertiesRepository extends another CrudRepository which contains all default CRUD operations. ContractPropertiesRepository contains customized methods definitions for the operations in ContractProperties entity.
Since:
May 2020
Version:
8.9.0
Author:
Infosys Equinox
  • Method Details

    • existsByIdAndContractId

      boolean existsByIdAndContractId(long id, Long contractId)
      existsByIdAndContractId checks whether entry is available in db for the given id and contractID
      Parameters:
      id - of the ContractProperty
      contractId - It refers to the id of the contract which is a unique identifier. An contract should exists for the given contract id, and also the contract should be associated with the given ContractProperty id.
      Returns:
      the true or false
    • findByIdAndContractId

      ContractPropertiesEntity findByIdAndContractId(long id, Long contractid)
      Find by id and contract id.
      Parameters:
      id - of the ContractProperty
      contractid - It refers to the id of the contract which is a unique identifier. An contract should exists for the given contract id, and also the contract should be associated with the given ContractProperty id.
      Returns:
      the contract properties entity
    • findByContractId

      List<ContractPropertiesEntity> findByContractId(long contractId)
      Parameters:
      contractId - the contractId
      Returns:
      list of ContractPropertiesEntity
    • findByAttributeIdAndContractId

      ContractPropertiesEntity findByAttributeIdAndContractId(String id, Long contractId)
      Find by attributeId and contract id.
      Parameters:
      id - attributeId
      contractId - It refers to the id of the contract which is a unique identifier. An contract should exists for the given contract id, and also the contract should be associated with the given ContractProperty id.
      Returns:
      the contract properties entity
    • findAllByContractId

      List<ContractPropertiesEntity> findAllByContractId(Long accountId)