[dna-commits] DNA SVN: r779 - trunk/dna-jcr/src/main/java/org/jboss/dna/jcr.

dna-commits at lists.jboss.org dna-commits at lists.jboss.org
Tue Mar 17 11:45:11 EDT 2009


Author: rhauch
Date: 2009-03-17 11:45:11 -0400 (Tue, 17 Mar 2009)
New Revision: 779

Modified:
   trunk/dna-jcr/src/main/java/org/jboss/dna/jcr/SessionCache.java
Log:
DNA-304 SessionCache Uses Graph Layer Cardinality for Properties Instead of Cardinality from JCR Property Definition

Applied the patch the corrected SessionCache to determine the multiplicity using the property definition rather than the number of values in the DNA property.

Modified: trunk/dna-jcr/src/main/java/org/jboss/dna/jcr/SessionCache.java
===================================================================
--- trunk/dna-jcr/src/main/java/org/jboss/dna/jcr/SessionCache.java	2009-03-17 15:43:09 UTC (rev 778)
+++ trunk/dna-jcr/src/main/java/org/jboss/dna/jcr/SessionCache.java	2009-03-17 15:45:11 UTC (rev 779)
@@ -369,7 +369,7 @@
      * @return the <i>new</i> instance of the {@link Property}; never null
      */
     private AbstractJcrProperty createAndCacheJcrPropertyFor( PropertyInfo info ) {
-        boolean multiValued = info.getProperty().isMultiple();
+        boolean multiValued = info.isMultiValued();
         JcrPropertyDefinition definition = nodeTypes().getPropertyDefinition(info.getDefinitionId(), multiValued);
         assert definition != null;
         if (multiValued) {




More information about the dna-commits mailing list