Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
L-U-Ready committed Nov 21, 2024
2 parents d2ffa78 + 3c8105d commit 54a3c71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ private void createAndSaveReportArticlesByCategories(Report report, ReportCreate
// CategoryType 설정
reportArticle.updateCategoryType(categoryType);

reportArticleRepository.save(reportArticle);

// Report에 추가
report.addReportArticle(reportArticle);

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/the_monitor/domain/model/Report.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class Report extends BaseTimeEntity {
@JoinColumn(name = "client_id", nullable = false)
private Client client;

@OneToMany(mappedBy = "report", cascade = CascadeType.PERSIST, fetch = FetchType.LAZY, orphanRemoval = true)
@OneToMany(mappedBy = "report", fetch = FetchType.LAZY, orphanRemoval = true)
private List<ReportArticle> reportArticles = new ArrayList<>();;

@Builder
Expand Down

0 comments on commit 54a3c71

Please sign in to comment.