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()); }