Interface FeatureSourceRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<TMFeatureSource,​Long>, org.springframework.data.jpa.repository.JpaRepository<TMFeatureSource,​Long>, org.springframework.data.repository.PagingAndSortingRepository<TMFeatureSource,​Long>, org.springframework.data.repository.query.QueryByExampleExecutor<TMFeatureSource>, org.springframework.data.repository.Repository<TMFeatureSource,​Long>

    public interface FeatureSourceRepository
    extends org.springframework.data.jpa.repository.JpaRepository<TMFeatureSource,​Long>
    • Method Detail

      • findByIds

        @NonNull
        @PreAuthorize("permitAll()")
        @Query("from TMFeatureSource fs where id in :ids")
        List<TMFeatureSource> findByIds​(@Param("ids")
                                        List<Long> ids)
      • getAllExcludingIds

        @NonNull
        @PreAuthorize("permitAll()")
        @Query("from TMFeatureSource fs where id not in :ids")
        List<TMFeatureSource> getAllExcludingIds​(@Param("ids")
                                                 List<Long> ids)
        Find multiple feature-sources except some. Example URL: /api/admin/feature-sources/search/getAllExcludingIds?ids=1,2,3

        No feature sources are returned if ids is an empty list.

        Parameters:
        ids - The ids not to include
        Returns:
        All feature sources except those matching the ids