Skip to content

Commit

Permalink
[refactor] SoptampUser에서 NotNull 제약조건 추가 (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
kseysh committed Oct 8, 2024
1 parent 60f5bc6 commit f62ae95
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.sopt.app.domain.entity.soptamp;

import jakarta.persistence.*;
import jakarta.validation.constraints.NotNull;
import lombok.*;
import org.sopt.app.domain.entity.BaseEntity;
import org.sopt.app.domain.enums.PlaygroundPart;
Expand All @@ -16,16 +17,22 @@ public class SoptampUser extends BaseEntity {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@NotNull
private Long userId;

@NotNull
private String profileMessage;

@NotNull
private Long totalPoints;

@NotNull
private String nickname;

@NotNull
private Long generation;

@NotNull
private String part;

public void initTotalPoints() {
Expand Down

0 comments on commit f62ae95

Please sign in to comment.