Project

General

Profile

1
package eu.dnetlib.uoaadmintools.dao;
2

    
3
import eu.dnetlib.uoaadmintools.entities.Topic;
4

    
5
import org.springframework.data.mongodb.repository.MongoRepository;
6

    
7
import java.util.List;
8

    
9
public interface MongoDBTopicDAO extends TopicDAO, MongoRepository<Topic, String> {
10
    List<Topic> findAll();
11

    
12
    Topic findById(String Id);
13

    
14
    Topic save(Topic topic);
15

    
16
    void deleteAll();
17

    
18
    void delete(String id);
19
}
(8-8/12)