incubator-graffito-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clomb...@apache.org
Subject svn commit: r291261 - /incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/collectionconverter/impl/NTCollectionConverterImpl.java
Date Sat, 24 Sep 2005 07:57:00 GMT
Author: clombart
Date: Sat Sep 24 00:56:55 2005
New Revision: 291261

URL: http://svn.apache.org/viewcvs?rev=291261&view=rev
Log:
bug fix : the increment was incremented twice :-)

Modified:
    incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/collectionconverter/impl/NTCollectionConverterImpl.java

Modified: incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/collectionconverter/impl/NTCollectionConverterImpl.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/collectionconverter/impl/NTCollectionConverterImpl.java?rev=291261&r1=291260&r2=291261&view=diff
==============================================================================
--- incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/collectionconverter/impl/NTCollectionConverterImpl.java
(original)
+++ incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/collectionconverter/impl/NTCollectionConverterImpl.java
Sat Sep 24 00:56:55 2005
@@ -128,8 +128,7 @@
      * 
      * @see org.apache.portals.graffito.jcr.persistence.collectionconverter.CollectionConverter#updateCollection(javax.jcr.Session,
javax.jcr.Node, org.apache.portals.graffito.jcr.mapper.model.CollectionDescriptor, org.apache.portals.graffito.jcr.persistence.collectionconverter.ManageableCollection)
      */
-    public void updateCollection(Session session, Node parentNode, CollectionDescriptor collectionDescriptor,
-            ManageableCollection collection) throws JcrMappingException
+    public void updateCollection(Session session, Node parentNode, CollectionDescriptor collectionDescriptor,
ManageableCollection collection) throws JcrMappingException
     {
         try
         {
@@ -181,8 +180,7 @@
                 }
                 else
                 {
-
-                    elementCollectionCount++;
+                    
                     elementJcrName = COLLECTION_ELEMENT_NAME + elementCollectionCount;
                     objectConverter.insertNode(session, parentNode, elementJcrName, item);
                 }



Mime
View raw message