mirror of https://github.com/apache/openjpa.git
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:
parent
dbcdfb9ff9
commit
eb9a626945
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue