Skip to content

Commit

Permalink
Merge pull request #249 from codesquad-members-2023-team6/dev
Browse files Browse the repository at this point in the history
be
  • Loading branch information
new-pow committed Jun 1, 2023
2 parents a8a20ad + 514fb29 commit 2fdbdee
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id;
Expand All @@ -14,13 +15,12 @@
import org.springframework.data.relational.core.mapping.Table;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.PastOrPresent;
import java.time.Instant;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Getter
@Builder
Expand All @@ -31,7 +31,9 @@ public class Issue {

@Id
private Long issueIdx;

@NotNull
@NotBlank
private String title;
private String contents;
private Boolean isOpen;
Expand All @@ -44,10 +46,7 @@ public class Issue {
private AggregateReference<Milestone, @NotNull Long> milestone;

@Valid
@MappedCollection(
idColumn = "issue_idx",
keyColumn = "labeling_idx"
)
@MappedCollection(idColumn = "issue_idx", keyColumn = "labeling_idx")
@Builder.Default
private List<Labeling> labelOnIssue = new ArrayList<>();

Expand Down

0 comments on commit 2fdbdee

Please sign in to comment.