Package com.skava.accounts.repository
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 Summary
Modifier and TypeMethodDescriptionboolean
existsByIdAndContractId
(long id, Long contractId) existsByIdAndContractId checks whether entry is available in db for the given id and contractIDfindAllByContractId
(Long accountId) findByAttributeIdAndContractId
(String id, Long contractId) Find by attributeId and contract id.findByContractId
(long contractId) findByIdAndContractId
(long id, Long contractid) Find by id and contract id.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
Methods inherited from interface org.springframework.data.querydsl.QuerydslPredicateExecutor
count, exists, findAll, findAll, findAll, findAll, findAll, findBy, findOne
-
Method Details
-
existsByIdAndContractId
existsByIdAndContractId checks whether entry is available in db for the given id and contractID- Parameters:
id
- of the ContractPropertycontractId
- 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
Find by id and contract id.- Parameters:
id
- of the ContractPropertycontractid
- 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
- Parameters:
contractId
- the contractId- Returns:
- list of
ContractPropertiesEntity
-
findByAttributeIdAndContractId
Find by attributeId and contract id.- Parameters:
id
- attributeIdcontractId
- 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
-