Implementation of category updating.

This commit is contained in:
Florian THIERRY
2024-03-12 14:42:57 +01:00
parent b0e682e82e
commit 94180e8efc
4 changed files with 44 additions and 1 deletions

View File

@@ -17,6 +17,13 @@ public class CategoryBuilder {
private CategoryBuilder() {}
public CategoryBuilder basedOn(Category category) {
this.id = category.id();
this.name = category.name();
this.subCategories = category.subCategories();
return this;
}
public CategoryBuilder withId(UUID id) {
this.id = id;
return this;