Uploaded image for project: 'Jackrabbit OCM'
  1. Jackrabbit OCM
  2. OCM-15

Add more flexibility in the mapping

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Sometime, it should be interesting to map to a different jcr node structure.
      Here is an example, for a class "File", we can have :

      public class File {
      
          private String mimeType;
      
          private String encoding;
      
          private InputStream data;
      
          private Calendar lastModified;
      
          // Add getters/setters
      }
      

      and in terms of JCR structure, we can have :

      nt:file
          jcr:content
              jcr:mimeType
              jcr:encoding
              jcr:data
              jcr:lastModified
      

      So, the jcr:content node is an extra node to specify in the mapping file.

      Attachments

        Activity

          People

            Unassigned Unassigned
            clombart Christophe Lombart
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: