From d711736132d9225b400acb5e19e37fa301a6a48a Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Sun, 29 Jun 2014 18:38:54 +0200 Subject: [PATCH] =?UTF-8?q?Optimalizace=20na=C4=8D=C3=ADt=C3=A1n=C3=AD=20e?= =?UTF-8?q?ntit=20z=20datab=C3=A1ze.=20OwnedBy=20a=20ModifiedBy=20jsou=20l?= =?UTF-8?q?azy=20loadov=C3=A1ny.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/info/bukova/isspst/data/BaseData.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/info/bukova/isspst/data/BaseData.java b/src/main/java/info/bukova/isspst/data/BaseData.java index 189ee627..b3ce062f 100644 --- a/src/main/java/info/bukova/isspst/data/BaseData.java +++ b/src/main/java/info/bukova/isspst/data/BaseData.java @@ -22,10 +22,10 @@ public abstract class BaseData implements OwnedDataModel { private Date created; @Column(name="MODIFIED") private Date modified; - @ManyToOne(fetch=FetchType.EAGER) + @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="OWNED_BY_ID") private User ownedBy; - @ManyToOne(fetch=FetchType.EAGER) + @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="MODIFIED_BY_ID") private User modifiedBy; @Transient