mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-21 13:47:57 +01:00
Add enable_lazy_load_no_trans fix.
This commit is contained in:
parent
2b918a0df3
commit
63975464ca
@ -65,7 +65,7 @@ public class Mindmap implements Serializable {
|
|||||||
@Column(name = "public")
|
@Column(name = "public")
|
||||||
private boolean isPublic;
|
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)
|
@Fetch(FetchMode.JOIN)
|
||||||
private Set<Collaboration> collaborations = new HashSet<>();
|
private Set<Collaboration> collaborations = new HashSet<>();
|
||||||
|
|
||||||
|
@ -26,6 +26,8 @@
|
|||||||
<prop key="hibernate.default_batch_fetch_size">200</prop>
|
<prop key="hibernate.default_batch_fetch_size">200</prop>
|
||||||
<prop key="hibernate.nestedTransactionAllowed">true</prop>
|
<prop key="hibernate.nestedTransactionAllowed">true</prop>
|
||||||
<prop key="hibernate.auto_quote_keyword">true</prop>
|
<prop key="hibernate.auto_quote_keyword">true</prop>
|
||||||
|
<prop key="hibernate.enable_lazy_load_no_trans">true</prop>
|
||||||
|
|
||||||
</props>
|
</props>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
Loading…
Reference in New Issue
Block a user