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:[EMAIL PROTECTED]
P.S. A good JDO? O, Gasp!

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to