From 63975464ca040696f20a08cf974575233fa80ca4 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 19 Nov 2023 19:11:06 -0800 Subject: [PATCH] Add enable_lazy_load_no_trans fix. --- wise-webapp/src/main/java/com/wisemapping/model/Mindmap.java | 2 +- wise-webapp/src/main/resources/spring/wisemapping-dao.xml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wise-webapp/src/main/java/com/wisemapping/model/Mindmap.java b/wise-webapp/src/main/java/com/wisemapping/model/Mindmap.java index 64253a33..5c273b83 100644 --- a/wise-webapp/src/main/java/com/wisemapping/model/Mindmap.java +++ b/wise-webapp/src/main/java/com/wisemapping/model/Mindmap.java @@ -65,7 +65,7 @@ public class Mindmap implements Serializable { @Column(name = "public") private boolean isPublic; - @OneToMany(mappedBy = "mindMap", orphanRemoval = true, cascade = {CascadeType.ALL}, fetch = FetchType.EAGER) + @OneToMany(mappedBy = "mindMap", orphanRemoval = true, cascade = {CascadeType.ALL}, fetch = FetchType.LAZY) @Fetch(FetchMode.JOIN) private Set collaborations = new HashSet<>(); diff --git a/wise-webapp/src/main/resources/spring/wisemapping-dao.xml b/wise-webapp/src/main/resources/spring/wisemapping-dao.xml index ba55daa0..37ca4676 100644 --- a/wise-webapp/src/main/resources/spring/wisemapping-dao.xml +++ b/wise-webapp/src/main/resources/spring/wisemapping-dao.xml @@ -26,6 +26,8 @@ 200 true true + true +