Java Mailing List Archive

http://www.gg3721.com/

Home » users.openjpa »

Re: @VersionColumns usage

Craig L Russell

2008-08-25

Replies: Find Java Web Hosting

Author LoginPost Reply
I'm not clear on the use case for multiple version columns. Does
anyone have an example of where it is useful?

Craig

On Aug 25, 2008, at 7:58 AM, Pinaki Poddar wrote:

>
> Hi,
> A recent commit on OPENJPA-697 upgrades the version column strategy
> for
> multiple numeric columns.
> A simple test case is available in the commit set as demonstration
> of usage.
> When a version value is represented as multiple column values,
> comparison of
> the version values poses some open questions.
> Currently, the comparison of v1 and v2 (when v1 and v2 are array of
> version
> column values) is as follows:
> if (compare(v1[i], v2[i]) = x for all i then return x
> if (compare(v1[i], v2[i]) = x for some i and 0 for all other i then
> return
> x
> otherwise return 1.
>
> A bit heuristic but am ready to listen to other ideas.
>
> --
> View this message in context: http://n2.nabble.com/%40VersionColumns-usage-tp736463p781659.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>

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


Attachment: smime.p7s (zipped)
©2008 gg3721.com - Jax Systems, LLC, U.S.A.