|
[
Permlink
| « Hide
]
Marc Prud'hommeaux added a comment - 17/Sep/06 06:58 AM
The same goes for element 10 of "serialize outside tx", which asserts that a persistent-nontransactional-dirty instance will become transient after serialize/deserialize, even though the specification seems to never mandate this. detached-clean should be an equally valid assertion.
The intent of a detached instance is that it represents a persistent instance that is not actively managed by a PersistenceManager but has identity and can be attached to a PersistenceManager. In the case of a deleted instance, this concept is violated and will cause problems for the application.
Specifically, if a deleted instance is treated as detached, and the detached instance is subsequently attached, an exception should result because the instance no longer exists in the datastore, and the assumption is that detached instances have persistent identity that corresponds to a persistent instance. Regarding element 10, persistent-nontransactional-dirty, I will create another JIRA for this, since it's a separate issue.
Craig Russell made changes - 04/Oct/06 09:18 PM
Craig Russell made changes - 04/Oct/06 09:18 PM
svn commit src/java/org/apache/jdo/tck/lifecycle/StateTransitionsReturnedObjects.java
Sending src/java/org/apache/jdo/tck/lifecycle/StateTransitionsReturnedObjects.java Transmitting file data . Committed revision 462525.
Craig Russell made changes - 10/Oct/06 07:44 PM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||