db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/metadata ClassDescriptor.java
Date Sun, 28 Nov 2004 03:14:43 GMT
arminw      2004/11/27 19:14:43

  Modified:    src/java/org/apache/ojb/broker/metadata ClassDescriptor.java
  Log:
  try to fix locking problem when using Timestamp
  (not sure if this user patch will solve problems)
  
  Revision  Changes    Path
  1.96      +2 -2      db-ojb/src/java/org/apache/ojb/broker/metadata/ClassDescriptor.java
  
  Index: ClassDescriptor.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/ClassDescriptor.java,v
  retrieving revision 1.95
  retrieving revision 1.96
  diff -u -r1.95 -r1.96
  --- ClassDescriptor.java	14 Nov 2004 09:36:10 -0000	1.95
  +++ ClassDescriptor.java	28 Nov 2004 03:14:43 -0000	1.96
  @@ -890,7 +890,7 @@
                   {
                       long newCv = (new Date()).getTime();
                       Timestamp ts = new Timestamp(newCv);
  -                    ts.setNanos(0);
  +                    ts.setNanos(((int) (ts.getNanos() / 1000000)) * 1000000);
                       f.set(obj, ts);
                   }
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message