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
This commit is contained in:
2014-07-16 14:33:12 +02:00
parent f157b9694f
commit e81d372217
2 changed files with 2 additions and 2 deletions
@@ -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)
@@ -22,7 +22,7 @@ public class RequirementSubpage<T extends RequirementBase> extends ListViewModel
}
@Command
@NotifyChange("dataBean")
@NotifyChange({"dataBean", "canApprove"})
public void approve() {
reqService.approve(getDataBean());
}