5 Replies Latest reply on Oct 9, 2014 12:50 PM by hchiorean

    Query regarding upgrade of Modeshape from 2.7.0 to 3.7.0





      I am in the middle of upgrading modeshape from 2.7.0 to 3.8.0.

      The architecture involves EAP 6.3.0, Modeshape 3.8.0, Infinispan 5.3.0.Final


      I upload my artifacts to modeshape via modeshape-jcr-rest API.


      When I access the artifacts I get hold of a node object and I can see the following values for the node object.



      (artifacts uploaded and accessed with version 3.8.0)

      /current/reform-emir-config {jcr:primaryType=nt:unstructured, properties={"jcr:primaryType":"nt:folder"}}



      (artifacts uploaded and accessed with version 2.7.0)

      /current/reform-emir-config {jcr:createdBy=admin, jcr:primaryType=nt:folder, jcr:created=2014-10-03T16:52:58.885+01:00, }



      the node object is of type: javax.jcr.Node



      From the above object - /current is the root directory and directory /reform-emir-config is its child.

      and there will be subsequent child nodes under /reform-emir-config



      What I don't understand is the change in the attributes of the Node object.

      why do I see jcr:primaryType=nt:unstructured when I use Modeshape 3.8.0???



      Where/how is this set? (since I don't set this while uploading the artifatcs via modeshape-jcr-rest)

      Are these default properties that get set within modeshape-jcr?