Otherwise the MutableTreeModel associated is initialized with a Order that is not saved yet. When it's used, e.g., when adding a subtask, it fails. The MutableTreeModel#nodesByDomainObject map wouldn't find the node associated to the Order, because the hashCode is different. At first the Order is a new object so it returns a different hashCode, once saved another. With these changes, when initializing the MutableTreeModel it has already been saved. |
||
|---|---|---|
| .. | ||
| src | ||
| pom.xml | ||