Commit f16f4241 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

eager loaded compartment caused issues when loading info about comment (it...

eager loaded compartment caused issues when loading info about comment (it took a lot of time load this data in some cases)
parent 2d738b4b
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment