Skip to content

Commit 78f41c0

Browse files
committed
(TP-123) feat: fetch and cascade to renter relation
1 parent 69aaf26 commit 78f41c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rentplace/src/main/java/kattsyn/dev/rentplace/entities/Reservation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class Reservation {
2626
@JoinColumn(name = "property_id")
2727
private Property property;
2828

29-
@ManyToOne
29+
@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.PERSIST)
3030
@JoinColumn(name = "renter_id")
3131
private User renter;
3232

0 commit comments

Comments
 (0)