Package com.skava.accounts.repository
Interface AccountPropertiesRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<AccountPropertiesEntity,
,Long> org.springframework.data.repository.Repository<AccountPropertiesEntity,
Long>
public interface AccountPropertiesRepository
extends org.springframework.data.repository.CrudRepository<AccountPropertiesEntity,Long>
The Interface AccountPropertiesRepository extends another CrudRepository which contains all default crud operations.
AccountPropertiesRepository contains customized methods definitions for the operations in AccountProperties entity.
- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Delete AccountPropertiesEntity by id.boolean
existsByIdAndAccountId
(long id, Long accountId) existsByIdAndAccountId checks whether entry is available in db for the given id and accountIDfindAllByAccountId
(Long accountId) findByAttributeIdAndAccountId
(String id, Long accountId) findByIdAndAccountId
(long id, Long accountId) Find by id and account id.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
-
Method Details
-
existsByIdAndAccountId
existsByIdAndAccountId checks whether entry is available in db for the given id and accountID- Parameters:
id
- of the AccountPropertyaccountId
- It refers to the id of the account which is a unique identifier. An account should exists for the given account id, and also the account should be associated with the given AccountProperty id.- Returns:
- the true or false
-
findByIdAndAccountId
Find by id and account id.- Parameters:
id
- of the AccountPropertyaccountId
- It refers to the id of the account which is a unique identifier. An account should exists for the given account id, and also the account should be associated with the given AccountProperty id.- Returns:
- the account properties entity
-
findByAttributeIdAndAccountId
-
findAllByAccountId
-
deleteAccountPropertiesById
@Modifying @Query("DELETE FROM AccountPropertiesEntity a WHERE a.id = :id") void deleteAccountPropertiesById(@Param("id") Long id) Delete AccountPropertiesEntity by id.- Parameters:
id
- It refers to the id of the AccountPropertiesEntity which is a unique identifier. An AccountPropertiesEntity should exists for the given AccountPropertiesEntity id, and also the AccountPropertiesEntity should be associated with the given Property id.
-