You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by "Andrey Razumovsky (JIRA)" <de...@cayenne.apache.org> on 2008/10/23 15:44:11 UTC
[jira] Created: (CAY-1129) ROP: CayenneContext does not unregister
deleted nodes
ROP: CayenneContext does not unregister deleted nodes
-----------------------------------------------------
Key: CAY-1129
URL: https://issues.apache.org/cayenne/browse/CAY-1129
Project: Cayenne
Issue Type: Bug
Components: Cayenne Core Library
Affects Versions: 3.0
Reporter: Andrey Razumovsky
Assignee: Andrey Razumovsky
This test fail:
public class CayenneContextDeletionTest extends RemoteCayenneCase {
public void test() {
ClientMtTable1 obj = context.newObject(ClientMtTable1.class);
context.commitChanges();
context.deleteObject(obj);
context.commitChanges();
//now check that the object is unregistered
assertNull(context.getGraphManager().getNode(obj.getObjectId()));
}
}
BTW same thing with DataContext works
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Created: (CAY-1129) ROP: CayenneContext does not unregister deleted nodes
Posted by Andrus Adamchik <an...@objectstyle.org>.
Ugh, that's evil. Good catch.
Andrus
On Oct 23, 2008, at 9:44 AM, Andrey Razumovsky (JIRA) wrote:
> ROP: CayenneContext does not unregister deleted nodes
> -----------------------------------------------------
>
> Key: CAY-1129
> URL: https://issues.apache.org/cayenne/browse/CAY-1129
> Project: Cayenne
> Issue Type: Bug
> Components: Cayenne Core Library
> Affects Versions: 3.0
> Reporter: Andrey Razumovsky
> Assignee: Andrey Razumovsky
>
>
> This test fail:
>
> public class CayenneContextDeletionTest extends RemoteCayenneCase {
> public void test() {
> ClientMtTable1 obj = context.newObject(ClientMtTable1.class);
> context.commitChanges();
>
> context.deleteObject(obj);
>
> context.commitChanges();
>
> //now check that the object is unregistered
>
> assertNull(context.getGraphManager().getNode(obj.getObjectId()));
> }
> }
>
> BTW same thing with DataContext works
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
[jira] Closed: (CAY-1129) ROP: CayenneContext does not unregister
deleted nodes
Posted by "Andrey Razumovsky (JIRA)" <de...@cayenne.apache.org>.
[ https://issues.apache.org/cayenne/browse/CAY-1129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrey Razumovsky closed CAY-1129.
----------------------------------
Resolution: Fixed
Fix Version/s: 3.0
Fixed
> ROP: CayenneContext does not unregister deleted nodes
> -----------------------------------------------------
>
> Key: CAY-1129
> URL: https://issues.apache.org/cayenne/browse/CAY-1129
> Project: Cayenne
> Issue Type: Bug
> Components: Cayenne Core Library
> Affects Versions: 3.0
> Reporter: Andrey Razumovsky
> Assignee: Andrey Razumovsky
> Fix For: 3.0
>
>
> This test fail:
> public class CayenneContextDeletionTest extends RemoteCayenneCase {
> public void test() {
> ClientMtTable1 obj = context.newObject(ClientMtTable1.class);
> context.commitChanges();
>
> context.deleteObject(obj);
>
> context.commitChanges();
> //now check that the object is unregistered
> assertNull(context.getGraphManager().getNode(obj.getObjectId()));
> }
> }
> BTW same thing with DataContext works
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.