File tree Expand file tree Collapse file tree
apps/commerce-api/src/main/java/com/loopers/domain/brand Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import com .loopers .domain .BaseEntity ;
44import com .loopers .support .error .CoreException ;
55import com .loopers .support .error .ErrorType ;
6+ import jakarta .persistence .Column ;
67import jakarta .persistence .Entity ;
78import jakarta .persistence .Table ;
89
910@ Entity
1011@ Table (name = "brand" )
1112public class Brand extends BaseEntity {
1213
14+ @ Column (nullable = false )
1315 private String name ;
16+
17+ @ Column (nullable = false )
1418 private String description ;
1519
1620 protected Brand () {
@@ -22,7 +26,7 @@ public Brand(String name, String description) {
2226 }
2327
2428 if (description == null || description .isBlank ()) {
25- throw new CoreException (ErrorType .BAD_REQUEST , "이름은 필수입니다." );
29+ throw new CoreException (ErrorType .BAD_REQUEST , "설명은 필수입니다." );
2630 }
2731
2832 this .name = name ;
You can’t perform that action at this time.
0 commit comments