1
|
package eu.dnetlib.datasource.publisher.repository;
|
2
|
|
3
|
import eu.dnetlib.datasource.publisher.model.db.Datasource;
|
4
|
import org.springframework.data.jpa.repository.JpaRepository;
|
5
|
import org.springframework.scheduling.annotation.Async;
|
6
|
import org.springframework.stereotype.Repository;
|
7
|
import org.springframework.util.concurrent.ListenableFuture;
|
8
|
|
9
|
/**
|
10
|
* Created by claudio on 12/04/2017.
|
11
|
*/
|
12
|
@Repository
|
13
|
public interface DatasourceRepository extends JpaRepository<Datasource, String> {
|
14
|
|
15
|
@Async
|
16
|
ListenableFuture<Datasource> findOneById(String id);
|
17
|
|
18
|
}
|