OPENJPA-1726: fix intermittent failure in TestTimestampVersion. The next bulkUpdate timestamp version should be consistently generated as nextVersion method.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@965928 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Fay Wang 2010-07-20 17:49:25 +00:00
parent 9166a7753a
commit 42b0b38815

View File

@ -52,7 +52,7 @@ public class TimestampVersionStrategy
public Map getBulkUpdateValues() {
Column[] cols = vers.getColumns();
Map map = new HashMap(cols.length);
Date d = new Date();
Object d = nextVersion(null);
for (int i = 0; i < cols.length; i++)
map.put(cols[i], d);
return map;