Skip to content

Entity에서 @NotNull을 nullable=false로 변경 #1046

@Minnsuaa

Description

@Minnsuaa

Describe

  • Request와 같이 비즈니스 로직 검증 부분에서 사용되는 @NotNull 어노테이션이 엔티티 컬럼 정의에도 사용되고 있습니다.
    • Request DTO 등에서 @NotNull을 통해 이미 유효성 검증을 수행하고 있으므로, 엔티티 컬럼에서는 @NotNull 대신 nullable = false 속성으로 중복을 줄이고 DB 제약 조건으로만 적용하도록 변경합니다.

Metadata

Metadata

Assignees

Type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions