Apache JDO Project - [jira] Updated: (JDO-229) Class DeleteCallback must not assume managed relationships.

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > December 2005 > [jira] Updated: (JDO-229) Class DeleteCallback must not assume managed relationships.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Updated: (JDO-229) Class DeleteCallback must not assume managed relationships.
Michael Watzek (JIRA)

2005-12-07, 5:45 pm

[ http://issues.apache.org/jira/browse/JDO-229?page=all ]

Michael Watzek updated JDO-229:
-------------------------------

Attachment: JDO-229.patch2

The second patch implements the comments above.


> Class DeleteCallback must not assume managed relationships.
> -----------------------------------------------------------
>
> Key: JDO-229
> URL: http://issues.apache.org/jira/browse/JDO-229
> Project: JDO
> Type: Bug
> Components: tck20
> Reporter: Michael Watzek
> Assignee: Michael Watzek
> Attachments: JDO-229.patch, JDO-229.patch2
>
> There is a portability issue with test case DeleteCallback:
> The test case assumes that a JDO implementation supports managed relationships, because it deletes instances which are referenced by other instances. Given that the relationships are represented by foreign keys in the database for which the delete rule

is specified as RESTRICT, the test will cause errors for JDO implementations which do not support managed relationships, because it does not nullify those references explicitely,
> In order to make the test case portable, it should explicitely nullify references to all deleted objects first. Afterwards, it should call Query.deletePersistentAll.


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com