add CategoryPersistence Adapter implemenation
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a453a01ff9
commit
f558de5fa9
3 changed files with 61 additions and 6 deletions
|
@ -1,11 +1,21 @@
|
|||
package main;
|
||||
|
||||
import persistence.GenericCSVDAO;
|
||||
import persistence.category.CSVCategoryPersistenceAdapter;
|
||||
import persistence.category.CategoryEntity;
|
||||
import tag.TagName;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class Main {
|
||||
|
||||
public static void main(String[] args) {
|
||||
TagName test = new TagName("ds");
|
||||
|
||||
var csvCategoryPersistenceAdapter =
|
||||
new CSVCategoryPersistenceAdapter(new GenericCSVDAO<CategoryEntity>(new File("dsa"),
|
||||
CategoryEntity::new));
|
||||
|
||||
System.out.println(test);
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue