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 Details

    • existsByIdAndAccountId

      boolean existsByIdAndAccountId(long id, Long accountId)
      existsByIdAndAccountId checks whether entry is available in db for the given id and accountID
      Parameters:
      id - of the AccountProperty
      accountId - 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

      AccountPropertiesEntity findByIdAndAccountId(long id, Long accountId)
      Find by id and account id.
      Parameters:
      id - of the AccountProperty
      accountId - 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

      AccountPropertiesEntity findByAttributeIdAndAccountId(String id, Long accountId)
    • findAllByAccountId

      List<AccountPropertiesEntity> findAllByAccountId(Long accountId)
    • 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.