dnet45/modules/uoa-admin-tools/src/main/java/eu/dnetlib/uoaadmintools/dao/MongoDBLayoutDAO.java @ 55027
1 |
package eu.dnetlib.uoaadmintools.dao; |
---|---|
2 |
|
3 |
import eu.dnetlib.uoaadmintools.entities.Layout; |
4 |
import org.springframework.data.mongodb.repository.MongoRepository; |
5 |
|
6 |
import java.util.List; |
7 |
|
8 |
public interface MongoDBLayoutDAO extends LayoutDAO, MongoRepository<Layout, String> { |
9 |
|
10 |
List<Layout> findAll(); |
11 |
|
12 |
Layout findById(String Id); |
13 |
|
14 |
Layout findByColor(String color); |
15 |
|
16 |
Layout save(Layout entity); |
17 |
|
18 |
void deleteAll(); |
19 |
|
20 |
void delete(String id); |
21 |
}
|