Vypnut lazy loading středisek u požadavků. Opravena notifikace změněných

proměnných při schválení požadavku. 
refs #108
multitenant
Josef Rokos 11 years ago
parent f157b9694f
commit e81d372217

@ -30,7 +30,7 @@ public class RequirementBase extends BaseData {
private Date reqDate; private Date reqDate;
@Column(name = "DESCRIPTION") @Column(name = "DESCRIPTION")
private String description; private String description;
@ManyToOne(fetch = FetchType.LAZY) @ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "CENTRE_ID") @JoinColumn(name = "CENTRE_ID")
private Workgroup centre; private Workgroup centre;
@ManyToOne(fetch = FetchType.EAGER) @ManyToOne(fetch = FetchType.EAGER)

@ -22,7 +22,7 @@ public class RequirementSubpage<T extends RequirementBase> extends ListViewModel
} }
@Command @Command
@NotifyChange("dataBean") @NotifyChange({"dataBean", "canApprove"})
public void approve() { public void approve() {
reqService.approve(getDataBean()); reqService.approve(getDataBean());
} }

Loading…
Cancel
Save