db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/core PersistenceBrokerImpl.java
Date Wed, 25 Jun 2003 19:57:07 GMT
brj         2003/06/25 12:57:07

  Modified:    src/java/org/apache/ojb/broker/core
                        PersistenceBrokerImpl.java
  Log:
  added logging info if cascade-store is false
  
  Revision  Changes    Path
  1.16      +14 -2     db-ojb/src/java/org/apache/ojb/broker/core/PersistenceBrokerImpl.java
  
  Index: PersistenceBrokerImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/core/PersistenceBrokerImpl.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- PersistenceBrokerImpl.java	20 Jun 2003 19:22:12 -0000	1.15
  +++ PersistenceBrokerImpl.java	25 Jun 2003 19:57:07 -0000	1.16
  @@ -679,7 +679,7 @@
               }
               else
               {
  -                if(logger.isEnabledFor(Logger.INFO)) logger.info("Cascade store for this
reference ("+rds.getItemClassName()
  +                if(logger.isEnabledFor(Logger.INFO)) logger.info("Cascade store for this
reference-descriptor (" + rds.getAttributeName()
                           +") was set to false.");
               }
           }
  @@ -803,6 +803,12 @@
                               // 1. Store depended upon object first to avoid FK violation
                               storeCollectionObject(cds, otherObj);
                           }
  +                        else
  +                        {
  +                            if(logger.isEnabledFor(Logger.INFO)) logger.info("Cascade store
for this collection-descriptor (" + cds.getAttributeName()
  +                                    + ") was set to false.");
  +                        }
  +                        
                           // 2. Store indirection record
                           storeMtoNImplementor(cds, obj, otherObj, currentMtoNKeys);
                       }
  @@ -837,6 +843,12 @@
           {
               store(otherObject);
           }
  +        else
  +        {
  +            if(logger.isEnabledFor(Logger.INFO)) logger.info("Cascade store for this collection-descriptor
(" + cds.getAttributeName()
  +                    + ") was set to false.");
  +        }
  +        
       }
   
       /**
  
  
  

Mime
View raw message