View Javadoc
1   /*
2    * Copyright (C) 2024 B3Partners B.V.
3    *
4    * SPDX-License-Identifier: MIT
5    */
6   package org.tailormap.api.repository;
7   
8   import java.util.List;
9   import org.springframework.data.jpa.repository.JpaRepository;
10  import org.springframework.data.rest.core.annotation.RepositoryRestResource;
11  import org.tailormap.api.persistence.SearchIndex;
12  
13  @RepositoryRestResource(
14      path = "search-indexes",
15      collectionResourceRel = "search-indexes",
16      itemResourceRel = "search-index")
17  public interface SearchIndexRepository extends JpaRepository<SearchIndex, Long> {
18    List<SearchIndex> findByFeatureTypeId(Long featureTypeId);
19  }