Interface AccountRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<AccountModel,Long>, org.springframework.data.jpa.repository.JpaRepository<AccountModel,Long>, org.springframework.data.repository.ListCrudRepository<AccountModel,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<AccountModel,Long>, org.springframework.data.repository.PagingAndSortingRepository<AccountModel,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<AccountModel>, org.springframework.data.repository.Repository<AccountModel,Long>

public interface AccountRepository extends org.springframework.data.jpa.repository.JpaRepository<AccountModel,Long>
Repository interface for AccountModel entities. Provides methods for accessing account data in the database.
Since:
1.0.0
Version:
1.0.0, 06/26/2025
Author:
Fernando Cruz Cavina
  • Method Summary

    Modifier and Type
    Method
    Description
    Finds an account by its Pix table that associated pix key.

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

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

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByPixKey

      @Query("SELECT a FROM AccountModel a JOIN PixModel p ON a.idAccount = p.idAccount WHERE p.key = :pixKey") Optional<AccountModel> findByPixKey(@Param("pixKey") String pixKey)
      Finds an account by its Pix table that associated pix key.
      Parameters:
      pixKey - the Pix key
      Returns:
      an Optional containing the found AccountModel, or empty if not found