You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by Craig L Russell <Cr...@Sun.COM> on 2007/12/07 19:56:16 UTC

Detaching or serializing persistent-nontransactional-dirty instances

I need some help resolving what the behavior should be for detaching  
or serializing persistent-nontransactional-dirty instances. This  
behavior was unspecified in JDO 2.0 when we introduced persistent- 
nontransactional-dirty instances.

One point of view is that we should be consistent with serialization  
behavior within a transaction, in which we assume that the  
transaction will commit, and therefore return a detached-clean instance.

The other point of view is that we should not assume that there will  
be a transaction to be committed, and therefore return a detached- 
dirty instance, containing all the changes from the dirty instance.

I'm not sure that I understand well enough the scenarios that would  
argue one side or the other. If there's no consensus we will leave  
this unspecified for now.

Any ideas?

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!