Apache JDO Project - [jira] Updated: (JDO-412) Expectation of jdoPostLoad() invocation

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > October 2006 > [jira] Updated: (JDO-412) Expectation of jdoPostLoad() invocation





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-412) Expectation of jdoPostLoad() invocation
Michael Bouschen (JIRA)

2006-10-02, 7:12 pm

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

Michael Bouschen updated JDO-412:
---------------------------------

Fix Version/s: JDO 2 maintenance release 1
Description:
Some tests assume that jdoPostLoad() will be called, but do not take into account the possibilty that persistent-nontransactional is a valid state, and that jdoPostLoad() is not invoked for those instances. The solution should be to force instances to be
transitioned to persistent-clean after commit by setting RetainValues=false.

This affects the following tests:

org.apache.jdo.tck.api.instancecallbacks.CallingJdoPostload.test
org.apache.jdo.tck.api.instancecallbacks. ModificationOfNontransactionalNonpersist
entFields.test

The solution is to invoke "setRetainValues(false)" after obtaining the transaction in both the test cases. E.g.:

Transaction t = pm.currentTransaction();
t.setRetainValues(false);


was:

Some tests assume that jdoPostLoad() will be called, but do not take into account the possibilty that persistent-nontransactional is a valid state, and that jdoPostLoad() is not invoked for those instances. The solution should be to force instances to be
transitioned to persistent-clean after commit by setting RetainValues=false.

This affects the following tests:

org.apache.jdo.tck.api.instancecallbacks.CallingJdoPostload.test
org.apache.jdo.tck.api.instancecallbacks. ModificationOfNontransactionalNonpersist
entFields.test

The solution is to invoke "setRetainValues(false)" after obtaining the transaction in both the test cases. E.g.:

Transaction t = pm.currentTransaction();
t.setRetainValues(false);



> Expectation of jdoPostLoad() invocation does not take into account the possibility of persistent-nontransactional state
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: JDO-412
> URL: http://issues.apache.org/jira/browse/JDO-412
> Project: JDO
> Issue Type: Bug
> Components: tck20
> Affects Versions: JDO 2 final
> Reporter: Marc Prud'hommeaux
> Assigned To: Michael Bouschen
> Priority: Minor
> Fix For: JDO 2 maintenance release 1
>
>
> Some tests assume that jdoPostLoad() will be called, but do not take into account the possibilty that persistent-nontransactional is a valid state, and that jdoPostLoad() is not invoked for those instances. The solution should be to force instances to b

e transitioned to persistent-clean after commit by setting RetainValues=false.
> This affects the following tests:
> org.apache.jdo.tck.api.instancecallbacks.CallingJdoPostload.test
> org.apache.jdo.tck.api.instancecallbacks. ModificationOfNontransactionalNonpersist
entFields.test
> The solution is to invoke "setRetainValues(false)" after obtaining the transaction in both the test cases. E.g.:
> Transaction t = pm.currentTransaction();
> t.setRetainValues(false);


--
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