Interface DomainIdRepository<T,ID>
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<T,,ID> org.springframework.data.jpa.repository.JpaRepository<T,,ID> org.springframework.data.jpa.repository.JpaSpecificationExecutor<T>,org.springframework.data.repository.PagingAndSortingRepository<T,,ID> org.springframework.data.repository.query.QueryByExampleExecutor<T>,org.springframework.data.repository.Repository<T,ID>
- All Known Subinterfaces:
AiStatRepository,AssistantDefinitionRepository,BannerRepository,BasketInvoiceItemsRepository,BasketInvoicesRepository,CalendarEventsRepository,CalendarTypesRepository,CampaingsRepository,DocAtrDefRepository,DocForumRepository,EmailsRepository,FileArchiveRepository,FileHistoryRepository,FormAttributesRepository,FormsArchiveRepository,FormsRepository,FormsRepositoryInterface<E>,ForumGroupRepository,GalleryDimensionRepository,GalleryRepository,GdprRegExpRepository,InquiryAnswerRepository,InquiryRepository,InquiryUsersVoteRepository,InsertScriptRepository,MediaRepository,NewsTemplatesRepository,NonApprovedEventsRepository,PaymentMethodRepository,PerexGroupsRepository,QuestionsAnswersRepository,QuizRepository,ReservationObjectPriceRepository,ReservationObjectRepository,ReservationObjectTimesRepository,ReservationRepository,ResponseHeaderRepository,RestaurantMenuMealsRepository,RestaurantMenuRepository,SuggestEventsRepository,UnsubscribedRepository
@NoRepositoryBean
public interface DomainIdRepository<T,ID>
extends org.springframework.data.jpa.repository.JpaRepository<T,ID>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<T>
Repozitar pre pracu s tabulkami obsahujucich domain_id, ktore oddeluje zaznamy v tabulke podla domeny
dokumentacia k pouzitiu v docs/developer/datatables/domainid.md, vsetko zabezpecuje DatatableRestControllerV2,
staci ak vas repozitar extenduje tuto triedu, priklad:
public interface QuestionsAnswersRepository extends DomainIdRepository<QuestionsAnswersEntity, Long> {
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByDomainId(int domainId) org.springframework.data.domain.Page<T>findAllByDomainId(int domainId, org.springframework.data.domain.Pageable pageable) findFirstByIdAndDomainId(Long id, int domainId) 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, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, findAll, findAll, findAll, findOneMethods 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
-
findFirstByIdAndDomainId
-
findAllByDomainId
-
findAllByDomainId
org.springframework.data.domain.Page<T> findAllByDomainId(int domainId, org.springframework.data.domain.Pageable pageable)
-