diff --git a/model/src/main/java/lcsb/mapviewer/model/map/species/Element.java b/model/src/main/java/lcsb/mapviewer/model/map/species/Element.java index 0d419f263fe5b3cb618b46707f5e4738bcdf3b13..d8e87e973ba560cc6d8adcff8851cf892455ac40 100644 --- a/model/src/main/java/lcsb/mapviewer/model/map/species/Element.java +++ b/model/src/main/java/lcsb/mapviewer/model/map/species/Element.java @@ -127,7 +127,7 @@ public abstract class Element implements BioEntity, Serializable { * {@link Compartment} where element is located. When element lies outside of * every compartment then null value is assigned. */ - @ManyToOne + @ManyToOne(fetch = FetchType.LAZY) @Cascade({ CascadeType.SAVE_UPDATE }) private Compartment compartment;