Implementation of category updating.
This commit is contained in:
1 parent
b0e682e82e
commit
94180e8efc
4 files changed
+44
-1
No files matched your search
+7
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user