From 426bbe1df3e4900205c2fa86229d9d31d7277f1c Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Sat, 5 Jul 2014 00:12:29 +0200 Subject: [PATCH] =?UTF-8?q?U=20materi=C3=A1lu=20a=20slu=C5=BEeb=20bylo=20z?= =?UTF-8?q?m=C4=9Bn=C4=9Bno=20na=C4=8D=C3=ADt=C3=A1n=C3=AD=20ownedBy=20a?= =?UTF-8?q?=20modifiedBy=20na=20lazy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/info/bukova/isspst/data/RequirementSubject.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/info/bukova/isspst/data/RequirementSubject.java b/src/main/java/info/bukova/isspst/data/RequirementSubject.java index 6a2eca97..7a49bd6c 100644 --- a/src/main/java/info/bukova/isspst/data/RequirementSubject.java +++ b/src/main/java/info/bukova/isspst/data/RequirementSubject.java @@ -25,10 +25,10 @@ public abstract class RequirementSubject implements OwnedDataModel { @Column(name =" ID") @GeneratedValue(strategy = GenerationType.TABLE) private int id; - @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; @Column(name = "CREATED")