Interface InvoiceRepository

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

@Repository public interface InvoiceRepository extends org.springframework.data.jpa.repository.JpaRepository<Invoice,UUID>
InvoiceRepository.java - JPA repository for invoices.
Author:
Kristian Popov
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
     

    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

    • findAllByUserIdOrderByIssuedAtDesc

      List<Invoice> findAllByUserIdOrderByIssuedAtDesc(UUID userId)
    • countByUserId

      long countByUserId(UUID userId)