From e81d372217666da9cf2404eb95d37ae7e0839584 Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Wed, 16 Jul 2014 14:33:12 +0200 Subject: [PATCH] =?UTF-8?q?Vypnut=20lazy=20loading=20st=C5=99edisek=20u=20?= =?UTF-8?q?po=C5=BEadavk=C5=AF.=20Opravena=20notifikace=20zm=C4=9Bn=C4=9Bn?= =?UTF-8?q?=C3=BDch=20prom=C4=9Bnn=C3=BDch=20p=C5=99i=20schv=C3=A1len?= =?UTF-8?q?=C3=AD=20po=C5=BEadavku.=20refs=20#108?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/info/bukova/isspst/data/RequirementBase.java | 2 +- .../info/bukova/isspst/ui/requirement/RequirementSubpage.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/info/bukova/isspst/data/RequirementBase.java b/src/main/java/info/bukova/isspst/data/RequirementBase.java index 399267aa..2fcf679f 100644 --- a/src/main/java/info/bukova/isspst/data/RequirementBase.java +++ b/src/main/java/info/bukova/isspst/data/RequirementBase.java @@ -30,7 +30,7 @@ public class RequirementBase extends BaseData { private Date reqDate; @Column(name = "DESCRIPTION") private String description; - @ManyToOne(fetch = FetchType.LAZY) + @ManyToOne(fetch = FetchType.EAGER) @JoinColumn(name = "CENTRE_ID") private Workgroup centre; @ManyToOne(fetch = FetchType.EAGER) diff --git a/src/main/java/info/bukova/isspst/ui/requirement/RequirementSubpage.java b/src/main/java/info/bukova/isspst/ui/requirement/RequirementSubpage.java index bf6eee07..907c003f 100644 --- a/src/main/java/info/bukova/isspst/ui/requirement/RequirementSubpage.java +++ b/src/main/java/info/bukova/isspst/ui/requirement/RequirementSubpage.java @@ -22,7 +22,7 @@ public class RequirementSubpage extends ListViewModel } @Command - @NotifyChange("dataBean") + @NotifyChange({"dataBean", "canApprove"}) public void approve() { reqService.approve(getDataBean()); }