public void remove(DataObject object) {  m_parent.fireObserver(new RemoveEvent(m_parent, m_role, object));  if (m_linkType != null) { DataObject link = GenericDataObjectFactory.createObject( m_linkType, SessionManager.getSession(), false );  DataContainer linkData = ((GenericDataObject) link).getDataContainer(); Property prop = m_parent.getObjectType().getProperty(m_role); Property ass = prop.getAssociatedProperty();  linkData.initProperty(prop.getName(), object); linkData.initProperty(ass.getName(), m_parent);  object = link; }  if (m_toAdd.contains(object)) { m_toAdd.remove(object); } else { m_toRemove.add(object); }
public void remove() { getInternalCursor().remove();
    public void remove(DataObject object) {        m_parent.fireObserver(new RemoveEvent(m_parent, m_role, object));        if (m_linkType != null) {            DataObject link = GenericDataObjectFactory.createObject(                m_linkType,                SessionManager.getSession(),                false                );            DataContainer linkData =                ((GenericDataObject) link).getDataContainer();            Property prop = m_parent.getObjectType().getProperty(m_role);            Property ass = prop.getAssociatedProperty();            linkData.initProperty(prop.getName(), object);            linkData.initProperty(ass.getName(), m_parent);            object = link;        }        if (m_toAdd.contains(object)) {            m_toAdd.remove(object);        } else {            m_toRemove.add(object);        }    }