Skip to content

Commit 78fa938

Browse files
committed
Eager fetch notification parameters to fix lazy loading in async context
1 parent 5215277 commit 78fa938

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/io/poddeck/core/notification/Notification.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public final class Notification {
2828
private String title;
2929
@Column(name = "description", nullable = false)
3030
private String description;
31-
@ElementCollection
31+
@ElementCollection(fetch = FetchType.EAGER)
3232
@CollectionTable(
3333
name = "notification_parameters",
3434
joinColumns = @JoinColumn(name = "id")

0 commit comments

Comments
 (0)