Skip to content

Commit 2fd212f

Browse files
committed
feat: create builder to factory method
Signed-off-by: Otavio Santana <[email protected]>
1 parent 4b35869 commit 2fd212f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/otaviojava/demos/ddd/Product.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,8 @@ public String toString() {
8888
", categories=" + categories +
8989
'}';
9090
}
91+
92+
public static ProductBuilder builder() {
93+
return new ProductBuilder();
94+
}
9195
}

0 commit comments

Comments
 (0)