Interface DbCommunityRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<DbCommunity,String>, org.springframework.data.jpa.repository.JpaRepository<DbCommunity,String>, org.springframework.data.repository.PagingAndSortingRepository<DbCommunity,String>, org.springframework.data.repository.query.QueryByExampleExecutor<DbCommunity>, org.springframework.data.repository.Repository<DbCommunity,String>

@ConditionalOnProperty(value="openaire.exporter.enable.community", havingValue="true") public interface DbCommunityRepository extends org.springframework.data.jpa.repository.JpaRepository<DbCommunity,String>
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     

    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, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findOne
  • Method Details

    • findByParentIsNull

      List<DbCommunity> findByParentIsNull()
    • findByZenodoId

      @Query(value="select id from communities where ?1 = ANY(array_append(other_zenodo_communities, main_zenodo_community))", nativeQuery=true) List<String> findByZenodoId(String zenodoId)
    • findByIdStartsWith

      List<DbCommunity> findByIdStartsWith(String prefix)