db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/core PersistenceBrokerImpl.java
Date Fri, 16 May 2003 20:25:02 GMT
thma        2003/05/16 13:25:02

  Modified:    src/java/org/apache/ojb/broker/core
                        PersistenceBrokerImpl.java
  Log:
  apply Roger's patch for storing m:n associations
  
  Revision  Changes    Path
  1.8       +4 -4      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.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- PersistenceBrokerImpl.java	6 May 2003 20:17:00 -0000	1.7
  +++ PersistenceBrokerImpl.java	16 May 2003 20:25:02 -0000	1.8
  @@ -753,7 +753,7 @@
   
               if (col == null)
               {
  -                if (cds.isMtoNRelation())
  +                if (cds.isMtoNRelation() && cds.getCascadeStore())
                   {
                       // delete all rows from m:n table belonging to obj
                       deleteMtoNImplementor(cds, obj);
  @@ -768,7 +768,7 @@
                   {
                       continue;
                   }
  -                if (cds.isMtoNRelation())
  +                if (cds.isMtoNRelation() && cds.getCascadeStore())
                   {
                       currentMtoNKeys = getMtoNImplementor(cds, obj);
                       // delete unused m:n implementors
  @@ -797,7 +797,7 @@
                   {
                       Object otherObj = colIterator.next();
                       // for m:n mapped collections store association implementing entries
  -                    if (cds.isMtoNRelation())
  +                    if (cds.isMtoNRelation() && cds.getCascadeStore())
                       {
                           // 1. Store depended upon object first to avoid FK violation
                           storeCollectionObject(cds, otherObj);
  
  
  

Mime
View raw message