[jira] Commented: (JDO-411) Attempt to bulk-delete Employee records
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > [jira] Commented: (JDO-411) Attempt to bulk-delete Employee records




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Commented: (JDO-411) Attempt to bulk-delete Employee records  
Craig Russell (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-11-06 06:11 AM

[ 
> Attempt to bulk-delete Employee records without nulling foreign key refere
nces from InsurancePlan
> --------------------------------------------------------------------------
-----------------------
>
>                 Key: JDO-411
>                 URL: [url]http://issues.apache.org/jira/browse/JDO-411" target="_blank">http://issues.apache.org/jira/brows.../browse/JDO-411
>             Project: JDO
>          Issue Type: Bug
>          Components: tck20
>    Affects Versions: JDO 2 final
>            Reporter: Marc Prud'hommeaux
>         Assigned To: Michael Bouschen
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: DeletePersistentAll.patch, JDO-411.patch
>
>
> Multiple test cases attempt to bulk delete instances of Person. However, the Emplo
yee subclass of Person might wind up having a non-nullable foreign key reference to 
Insurance or another Employee (via the "mentor" field). While the defaut Derby TCK s
che
ma does not have this constraint, in order to be flexible for other database
s that will enforce the foreign key by default, some effort should be made t
o ensure that there are no relation constraints before the bulk deletes are 
attempted. This can be done
by adding a nullForeignKeyReferences() method that will manually make sure that the relation
s are nulled. See the attached patch.
> This affects the following tests:
>  org.apache.jdo.tck.query.delete.DeletePersistentAll.testNoParametersAPI
>  org.apache.jdo.tck.query.delete.DeletePersistentAll.testNoParametersSingl
eString
>  org.apache.jdo.tck.query.delete.DeletePersistentAll.testObjectArrayParame
tersAPI
>  org.apache.jdo.tck.query.delete.DeletePersistentAll.testObjectArrayParame
tersSingleString
>  org.apache.jdo.tck.query.delete.DeletePersistentAll.testMapParametersAPI
>  org.apache.jdo.tck.query.delete.DeletePersistentAll.testMapParametersSing
leString
>  org.apache.jdo.tck.query.delete.DeleteQueryElements.testAPI
>  org.apache.jdo.tck.query.delete.DeleteQueryElements.testSingleString

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








[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:52 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register