1
|
package eu.dnetlib.uoaadmintools.dao;
|
2
|
|
3
|
import eu.dnetlib.uoaadmintools.entities.Question;
|
4
|
|
5
|
import org.springframework.data.mongodb.repository.MongoRepository;
|
6
|
|
7
|
import java.util.List;
|
8
|
|
9
|
public interface MongoDBQuestionDAO extends QuestionDAO, MongoRepository<Question, String> {
|
10
|
List<Question> findAll();
|
11
|
|
12
|
Question findById(String id);
|
13
|
|
14
|
List<Question> findByTopicsIn(String id);
|
15
|
|
16
|
List<Question> findByTopicsInAndIsActiveIsTrue(String id);
|
17
|
|
18
|
Question save(Question question);
|
19
|
|
20
|
void deleteAll();
|
21
|
|
22
|
void delete(String id);
|
23
|
}
|
24
|
|