You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2025/05/28 15:29:00 UTC

[jira] [Created] (SLING-12811) Support writing Collection types in JCR resource provider's mutable valuemap

Konrad Windszus created SLING-12811:
---------------------------------------

             Summary: Support writing Collection types in JCR resource provider's mutable valuemap
                 Key: SLING-12811
                 URL: https://issues.apache.org/jira/browse/SLING-12811
             Project: Sling
          Issue Type: Improvement
          Components: JCR
            Reporter: Konrad Windszus


Currently only arrays are supported to write multi-value JCR properties (https://github.com/apache/sling-org-apache-sling-jcr-resource/blob/334fa10956b101c24f62e22a54f33afc374085da/src/main/java/org/apache/sling/jcr/resource/internal/helper/JcrPropertyMapCacheEntry.java#L89C41-L89C48).

It would be nice to also support Collection based types. Currently using a Collection type leads to storing it as binary single value property (due to most collection implementations also implement Serializable under the hood and https://github.com/apache/sling-org-apache-sling-jcr-resource/blob/334fa10956b101c24f62e22a54f33afc374085da/src/main/java/org/apache/sling/jcr/resource/internal/helper/JcrPropertyMapCacheEntry.java#L126



--
This message was sent by Atlassian Jira
(v8.20.10#820010)