Interface AcmeContactRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<AcmeContact,​Long>, org.springframework.data.jpa.repository.JpaRepository<AcmeContact,​Long>, org.springframework.data.repository.PagingAndSortingRepository<AcmeContact,​Long>, org.springframework.data.repository.query.QueryByExampleExecutor<AcmeContact>, org.springframework.data.repository.Repository<AcmeContact,​Long>

    @Repository
    public interface AcmeContactRepository
    extends org.springframework.data.jpa.repository.JpaRepository<AcmeContact,​Long>
    Spring Data repository for the AcmeContact entity.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      List<AcmeContact> findByAccountId​(Long accountId)  
      • 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, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush
      • 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 Detail

      • findByAccountId

        @Query(name="AcmeContact.findByAccountId")
        List<AcmeContact> findByAccountId​(@Param("accountId")
                                          Long accountId)