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 TypeMethodDescriptionFinds all DomainTemplates ordered by code.findByCode(String code) Finds a DomainTemplate by its code.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods 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
-