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 20:30:58 GMT
brj         2003/06/25 13:30:58

  Modified:    src/java/org/apache/ojb/broker/core
                        PersistenceBrokerImpl.java
  Log:
  removed redundant check for cascade store
  
  Revision  Changes    Path
  1.17      +3 -11     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.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- PersistenceBrokerImpl.java	25 Jun 2003 19:57:07 -0000	1.16
  +++ PersistenceBrokerImpl.java	25 Jun 2003 20:30:58 -0000	1.17
  @@ -798,16 +798,8 @@
                       // for m:n mapped collections store association implementing entries
                       if (cds.isMtoNRelation())
                       {
  -                        if (cds.getCascadeStore())
  -                        {
  -                            // 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.");
  -                        }
  +                        // 1. Store depended upon object first to avoid FK violation
  +                        storeCollectionObject(cds, otherObj);
                           
                           // 2. Store indirection record
                           storeMtoNImplementor(cds, obj, otherObj, currentMtoNKeys);
  
  
  

Mime
View raw message