Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-935

DataMap.remove*Entity does not remove

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 3.0
    • 3.0
    • Core Library
    • None
    • trunk as of today

    Description

      I am writing a junit test and are trying to do a DataMap.removeObjEntity and DataMap.removeDbEntity. The DataMaps dbEntityMap and objEntityMap are updated as expected, but DataMap.getObjEntity and DataMap.getDbEntity still finds the removed entities. The "problem" seem to be that the namespace still have them.

      So perhaps DataMap.remove*Entity should clear/reset the namespace?

      map.removeObjEntity(objEntity.getName(), true);
      map.removeDbEntity(dbEntity.getName(), true);
      assertNull(map.getObjEntity(objEntity.getName())); // fails
      assertNull(map.getDbEntity(dbEntity.getName())); // fails

      Am I doing something wrong?

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            halset Tore Halset
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: