Fixed bug where we weren't copying the nanoseconds when the Timestamp is cloned.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482308 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Marc Prud'hommeaux 2006-12-04 19:32:54 +00:00
parent dbcdfb9ff9
commit eb9a626945
1 changed files with 5 additions and 1 deletions

View File

@ -66,7 +66,11 @@ public class ProxyTimestamp
}
public Object copy(Object orig) {
return new Timestamp(((Timestamp) orig).getTime());
Timestamp origTimestamp = (Timestamp)orig;
Timestamp copy = new Timestamp(origTimestamp.getTime());
copy.setNanos(origTimestamp.getNanos());
return copy;
}
public void setYear(int val) {