You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by mk...@apache.org on 2005/02/23 19:46:21 UTC

cvs commit: db-ojb/src/java/org/apache/ojb/broker/metadata ClassDescriptor.java

mkalen      2005/02/23 10:46:21

  Modified:    src/java/org/apache/ojb/broker/metadata Tag: OJB_1_0_RELEASE
                        ClassDescriptor.java
  Log:
  Revert changes introduced in rev 1.88 (later reworked in rev 1.96). Faults in Oracle platform was due to invalid DDL, not java.sql.Timestamp per se. TIMESTAMP columns in Oracle are introduced in 9i and do have nanosecond precision.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.88.2.8  +2 -4      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.88.2.7
  retrieving revision 1.88.2.8
  diff -u -r1.88.2.7 -r1.88.2.8
  --- ClassDescriptor.java	19 Feb 2005 21:49:54 -0000	1.88.2.7
  +++ ClassDescriptor.java	23 Feb 2005 18:46:20 -0000	1.88.2.8
  @@ -940,9 +940,7 @@
                   else if (f.getType() == Timestamp.class)
                   {
                       long newCv = (new Date()).getTime();
  -                    Timestamp ts = new Timestamp(newCv);
  -                    ts.setNanos(((int) (ts.getNanos() / 1000000)) * 1000000);
  -                    f.set(obj, ts);
  +                    f.set(obj, new Timestamp(newCv));
                   }
               }
           }
  
  
  

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