1
|
package eu.dnetlib.uoaadmintools.dao;
|
2
|
|
3
|
import eu.dnetlib.uoaadmintools.entities.Community;
|
4
|
|
5
|
import org.springframework.data.mongodb.repository.MongoRepository;
|
6
|
|
7
|
import java.util.List;
|
8
|
|
9
|
public interface MongoDBCommunityDAO extends CommunityDAO, MongoRepository<Community, String> {
|
10
|
List<Community> findAll();
|
11
|
|
12
|
Community findById(String Id);
|
13
|
|
14
|
Community findByPid(String Pid);
|
15
|
|
16
|
Community findByName(String Name);
|
17
|
|
18
|
Community save(Community community);
|
19
|
|
20
|
void deleteAll();
|
21
|
|
22
|
void delete(String id);
|
23
|
}
|