Skip to content

Commit

Permalink
feat: create builder to factory method
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
  • Loading branch information
otaviojava committed Dec 19, 2024
1 parent 4b35869 commit 2fd212f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/otaviojava/demos/ddd/Product.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,8 @@ public String toString() {
", categories=" + categories +
'}';
}

public static ProductBuilder builder() {
return new ProductBuilder();
}
}

0 comments on commit 2fd212f

Please sign in to comment.