package uk.ac.ebi.quickgo.geneproduct.common;

import uk.ac.ebi.quickgo.geneproduct.common.document.GeneProductDocument;

import java.util.Optional;

/**
 * Gene product repository interface exposing methods for performing searches over its contents.
 * <p>
 * See here how to change:
 * https://github.com/spring-projects/spring-data-solr/blob/master/README.md
 *
 * @author Ricardo Antunes
 */
public interface GeneProductRepository {

    Optional<GeneProductDocument> findById(String id);
}

@@ -141,16 +141,84 @@
 ptional;
+%0Aimport org.springframework.data.solr.repository.SolrCrudRepository;
 %0A%0A/**%0A *
@@ -495,16 +495,72 @@
 pository
+ extends SolrCrudRepository%3CGeneProductDocument, String%3E
  %7B%0A%0A    

Make GeneProductRepository extend functionality from SolrCrudRepository.