1
|
package eu.dnetlib.datasource.publisher.repository;
|
2
|
|
3
|
import java.util.List;
|
4
|
|
5
|
import eu.dnetlib.datasource.publisher.model.db.SearchInterfacesEntry;
|
6
|
import org.springframework.data.jpa.repository.JpaRepository;
|
7
|
import org.springframework.stereotype.Repository;
|
8
|
|
9
|
/**
|
10
|
* Created by claudio on 12/04/2017.
|
11
|
*/
|
12
|
@Repository
|
13
|
public interface SearchInterfaceRepository extends JpaRepository<SearchInterfacesEntry, String> {
|
14
|
|
15
|
SearchInterfacesEntry findOneById(String id);
|
16
|
|
17
|
List<SearchInterfacesEntry> findByRepoidContainingOrRepoNameContainingOrAlternativeNameContainingOrRepoPrefixContainingOrRepoOrganizationContainingAllIgnoreCase(
|
18
|
String repoId,
|
19
|
String repoName,
|
20
|
String alternativeName,
|
21
|
String repoPrefix,
|
22
|
String repoOrganization);
|
23
|
|
24
|
}
|
25
|
|
26
|
|