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/otm/lock IsolationFactory.java
Date Thu, 12 Jun 2003 17:28:13 GMT
arminw      2003/06/12 10:28:13

  Modified:    src/java/org/apache/ojb/otm/lock IsolationFactory.java
  Log:
  use real object class instead
  of top-level class to match
  isolation level
  
  Revision  Changes    Path
  1.8       +6 -1      db-ojb/src/java/org/apache/ojb/otm/lock/IsolationFactory.java
  
  Index: IsolationFactory.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/otm/lock/IsolationFactory.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- IsolationFactory.java	12 Jun 2003 16:49:16 -0000	1.7
  +++ IsolationFactory.java	12 Jun 2003 17:28:13 -0000	1.8
  @@ -91,7 +91,12 @@
       public static TransactionIsolation getIsolationLevel (PersistenceBroker pb,
                                                             ObjectLock lock)
       {
  -        Class clazz = lock.getTargetIdentity().getObjectsTopLevelClass();
  +        /*
  +        arminw: use real object class instead of top-level class
  +        to match isolation level of given class
  +        */
  +        // Class clazz = lock.getTargetIdentity().getObjectsTopLevelClass();
  +        Class clazz = lock.getTargetIdentity().getObjectsRealClass();
           ClassDescriptor classDescriptor = pb.getClassDescriptor(clazz);
           int isolationLevel = classDescriptor.getIsolationLevel();
   
  
  
  

Mime
View raw message