Interface DomainTemplateRepository

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

public interface DomainTemplateRepository extends org.springframework.data.jpa.repository.JpaRepository<DomainTemplateEntity, Long>
Provides persistence operations for DomainTemplates.
Since:
0.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Finds all DomainTemplates ordered by code.
    Finds a DomainTemplate by its code.

    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

    • findAllByOrderByCodeAsc

      List<DomainTemplateEntity> findAllByOrderByCodeAsc()
      Finds all DomainTemplates ordered by code.
      Returns:
      DomainTemplates ordered by code in ascending order
    • findByCode

      Finds a DomainTemplate by its code.
      Parameters:
      code - DomainTemplate code
      Returns:
      matching DomainTemplate, or an empty optional when none exists