20 lines
538 B
Java
20 lines
538 B
Java
package eu.dnetlib.uoamonitorservice.dao;
|
|
|
|
import eu.dnetlib.uoamonitorservice.entities.Category;
|
|
import org.springframework.data.mongodb.repository.MongoRepository;
|
|
|
|
import java.util.List;
|
|
|
|
public interface MongoDBCategoryDAO extends CategoryDAO, MongoRepository<Category, String> {
|
|
List<Category> findAll();
|
|
List<Category> findByDefaultId(String DefaultId);
|
|
|
|
Category findBySubCategoriesContaining(String subCategory);
|
|
|
|
Category findById(String Id);
|
|
|
|
void delete(String Id);
|
|
|
|
Category save(Category category);
|
|
}
|