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

public interface VatRepository extends org.springframework.data.jpa.repository.JpaRepository<Vat,Vat.Id>
  • Method Summary

    Modifier and Type
    Method
    Description
     
    findByIdAndActive(Vat.Id Id, boolean active)
     

    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

    • findAllByOrganisationId

      @Query("SELECT t FROM Vat t WHERE t.id.organisationId = :organisationId") List<Vat> findAllByOrganisationId(@Param("organisationId") String organisationId)
    • findByIdAndActive

      @Query("SELECT t FROM Vat t WHERE t.id = :Id AND t.active = :active ") Optional<Vat> findByIdAndActive(@Param("Id") Vat.Id Id, @Param("active") boolean active)