openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: OptimisticException
Date Mon, 02 Jun 2008 15:55:53 GMT
Hi Tim,

On Jun 2, 2008, at 7:31 AM, Tim Holloway wrote:

> I've always found it difficult to trace back to where merges caused
> stale copies of an object to appear, resulting in Optimistic Locking
> Exceptions.
>
> Q: Would it be reasonable to add some functionality to the
> StateComparisonVersionStrategy such that if a conflict is encountered
> that the offending field and its conflicting values be displayed,  
> either
> in the Exception itself or in the log? It looks like
> ArrayStateImage.sameVersion would need to reflect back the failing
> column index.

Sounds like a good idea to me. Can you write a) a patch; b) a test  
case; c) a JIRA?

Craig
>
>

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!


Mime
View raw message