jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r230778 - /incubator/jackrabbit/trunk/xdocs/firststeps.xml
Date Mon, 08 Aug 2005 09:32:47 GMT
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();
       }
       



Mime
View raw message