You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by mr...@apache.org on 2005/08/08 11:32:47 UTC

svn commit: r230778 - /incubator/jackrabbit/trunk/xdocs/firststeps.xml

Author: mreutegg
Date: Mon Aug  8 02:32:44 2005
New Revision: 230778

URL: http://svn.apache.org/viewcvs?rev=230778&view=rev
Log:
JCR-121: JCRTest.java (First Steps example code) creates a StringValue with "new"

Modified:
    incubator/jackrabbit/trunk/xdocs/firststeps.xml

Modified: incubator/jackrabbit/trunk/xdocs/firststeps.xml
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/xdocs/firststeps.xml?rev=230778&r1=230777&r2=230778&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/xdocs/firststeps.xml (original)
+++ incubator/jackrabbit/trunk/xdocs/firststeps.xml Mon Aug  8 02:32:44 2005
@@ -210,7 +210,7 @@
       if (!rn.hasNode("testnode")) {
         System.out.println("creating testnode");
         Node n=rn.addNode("testnode", "nt:unstructured");
-        n.setProperty("testprop", new StringValue("Hello, World."));
+        n.setProperty("testprop", session.getValueFactory().createValue("Hello, World."));
         session.save();
       }
 
@@ -326,7 +326,7 @@
       if (!rn.hasNode("testnode")) {
         System.out.println("creating testnode");
         Node n=rn.addNode("testnode", "nt:unstructured");
-        n.setProperty("testprop", new StringValue("Hello, World."));
+        n.setProperty("testprop", session.getValueFactory().createValue("Hello, World."));
         session.save();
       }