Skip to content

Commit 703d872

Browse files
authored
Merge pull request #162 from Money-Touch/fix/#159
2 parents d349223 + c35371f commit 703d872

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/com/server/money_touch/domain/consumptionRecord/entity/ConsumptionCategory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public class ConsumptionCategory extends BaseEntity {
3333
@JoinColumn(name = "user_id", nullable = false)
3434
private User user;
3535

36-
@OneToMany(mappedBy = "consumptionCategory", cascade = CascadeType.ALL, orphanRemoval = true)
37-
private List<ConsumptionRecord> consumptionRecords = new ArrayList<>();
36+
// @OneToMany(mappedBy = "consumptionCategory", cascade = CascadeType.ALL, orphanRemoval = true)
37+
// private List<ConsumptionRecord> consumptionRecords = new ArrayList<>();
3838

3939
@OneToMany(mappedBy = "consumptionCategory", cascade = CascadeType.ALL, orphanRemoval = true)
4040
private List<BudgetCategory> budgetCategories = new ArrayList<>();

src/main/java/com/server/money_touch/domain/consumptionRecord/entity/ConsumptionRecord.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class ConsumptionRecord extends BaseEntity {
2424
@JoinColumn(name = "user_id", nullable = false)
2525
private User user;
2626

27-
@ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
27+
@ManyToOne(fetch = FetchType.LAZY)
2828
@JoinColumn(name = "consumption_category_id", nullable = false)
2929
private ConsumptionCategory consumptionCategory;
3030

0 commit comments

Comments
 (0)