Skip to content

Commit

Permalink
poprawiony fetchtype w Expense
Browse files Browse the repository at this point in the history
  • Loading branch information
JanisBe committed Jun 6, 2024
1 parent 127668e commit 473d693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/pl/janis/komornik/entities/Expense.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class Expense {
@Column(name = "amount", nullable = false)
private BigDecimal amount;

@OneToMany(mappedBy = "expense", cascade = CascadeType.ALL, orphanRemoval = true)
@OneToMany(fetch = FetchType.EAGER, mappedBy = "expense", cascade = CascadeType.ALL, orphanRemoval = true)
@ToString.Exclude
private List<Debt> debt;

Expand Down

0 comments on commit 473d693

Please sign in to comment.