You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by "Tore Halset (JIRA)" <de...@cayenne.apache.org> on 2007/12/10 11:05:43 UTC

[JIRA] Resolved: (CAY-935) DataMap.remove*Entity does not remove

     [ https://issues.apache.org/cayenne/browse/CAY-935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tore Halset resolved CAY-935.
-----------------------------

    Resolution: Won't Fix

using ctxt.getEntityResolver().clearCache(); is fine for me

> DataMap.remove*Entity does not remove
> -------------------------------------
>
>                 Key: CAY-935
>                 URL: https://issues.apache.org/cayenne/browse/CAY-935
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Cayenne Core Library
>    Affects Versions: 3.0
>         Environment: trunk as of today
>            Reporter: Tore Halset
>            Assignee: Andrus Adamchik
>             Fix For: 3.0
>
>
> 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?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.