Hi!
I have screen with a hierarchical treeTable.
My steps are:
- Delete child entity
- Select other sibling entity and press “Edit” button
- Stop on breakpoint in method annotated with
@Install(to = "treeTable.edit", subject = "screenOptionsSupplier")
My watcher shows treeTable.getSingleSelected().getParent().getChildren()
returning a collection with deleted child.
How can I force collection refreshing?
Here is ORM mapping
@JoinColumn(name = "PARENT_ID")
@ManyToOne(fetch = FetchType.LAZY)
protected Catalog parent;
@OnDeleteInverse(DeletePolicy.UNLINK)
@OnDelete(DeletePolicy.CASCADE)
@OneToMany(mappedBy = "parent", fetch = FetchType.LAZY)
private List<Catalog> children;
Here is screen’s fetch plan
<fetchPlan extends="_base">
<property name="parent" fetchPlan="_base">
<property name="children" />
</property>
<property name="children" />
</fetchPlan>