addapter interface for category
This commit is contained in:
parent
11cf674d9c
commit
07f0e11428
|
@ -0,0 +1,19 @@
|
||||||
|
package persistence;
|
||||||
|
|
||||||
|
import category.Category;
|
||||||
|
import category.CategoryPersistenceAdapter;
|
||||||
|
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
public class CSVCategoryPersistenceAdapter implements CategoryPersistenceAdapter {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Set<Category> getAll() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean add(Category category) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
5
1-Adapter/src/main/java/persistence/CategoryEntity.java
Normal file
5
1-Adapter/src/main/java/persistence/CategoryEntity.java
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
package persistence;
|
||||||
|
|
||||||
|
public record CategoryEntity(String name, int id) {
|
||||||
|
|
||||||
|
}
|
Reference in a new issue