Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-1385

UUID field not populated when saving a new node

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4
    • 1.5
    • jackrabbit-ocm
    • None

    Description

      In the following 'Article' class, there is are fields set to true for 'path' and 'uuid' jcr properties.
      The mixins for referencing (hence, support for UUID) are declared at the @Node level of the class.

      After saving the node with the ObjectContentManager, the uuid field is not populated as it could be expected

      @Node(jcrMixinTypes="mix:referenceable,mix:lockable,mix:versionable")
      public class Article {

      @Field(uuid=true)
      private String id = null;

      @Field(path=true)
      private String path = null;

      @Field
      private String content = null;

      ... constructor, getters and setters
      }

      The full discussion is here : http://www.nabble.com/OCM-issues-with-path-and-id-fields-%28annotations%29-tt15460625.html#a15460625

      Attachments

        Activity

          People

            clombart Christophe Lombart
            xcoulon Xavier Coulon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: