@Override public boolean removeChild(Location child) { if (child.getParentLocation() != null && manager != null) { child.getParentLocation().getChildLocations().remove(child); child.setParentLocation(null); manager.cascadeDeleteLocation(child.getId()); return true; } return false; }
@Override public Location getParent(Location item) { return item.getParentLocation(); }