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 576ee5d5..7cbed31f 100644 --- a/src/main/java/info/bukova/isspst/ui/requirement/RequirementSubpage.java +++ b/src/main/java/info/bukova/isspst/ui/requirement/RequirementSubpage.java @@ -21,7 +21,7 @@ public class RequirementSubpage extends ListViewModel } @Command - @NotifyChange("dataBean") + @NotifyChange({"dataBean", "canApprove"}) public void approve() { this.getReqService().approve(getDataBean()); }