public void assignTo(Entity parent) { this.parent = parent; if (list == null && parent != null) { update(); } }