Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 39677 invoked from network); 4 Apr 2006 10:57:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Apr 2006 10:57:37 -0000 Received: (qmail 90411 invoked by uid 500); 4 Apr 2006 10:57:36 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 90366 invoked by uid 500); 4 Apr 2006 10:57:35 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 90357 invoked by uid 99); 4 Apr 2006 10:57:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2006 03:57:35 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of tobias.strasser@gmail.com designates 64.233.166.181 as permitted sender) Received: from [64.233.166.181] (HELO pproxy.gmail.com) (64.233.166.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2006 03:57:34 -0700 Received: by pproxy.gmail.com with SMTP id m51so332120pye for ; Tue, 04 Apr 2006 03:57:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lGYYUEcRpE0THLO4gLrnY7mFLxeLw4NIMnAqIhs+ivUZp2DuKJlQRp0i+qLRDkf/74mTNMnUeMqcx2kX0fEaY6zyCQTAoRnHjtxLOrEw6CcqyJv9QzlFGTLhDMFwdCD9WzHdg5QBUmJuAMwjOCPV+xnKGhpvJhgJ+KsZj+ZR5oA= Received: by 10.35.9.2 with SMTP id m2mr359251pyi; Tue, 04 Apr 2006 03:57:13 -0700 (PDT) Received: by 10.35.111.8 with HTTP; Tue, 4 Apr 2006 03:57:13 -0700 (PDT) Message-ID: <8be731880604040357t32202a00t7895b2e715ddd74@mail.gmail.com> Date: Tue, 4 Apr 2006 12:57:13 +0200 From: "Tobias Bocanegra" Reply-To: tobias.bocanegra@day.com Sender: tobias.strasser@gmail.com To: dev@jackrabbit.apache.org Subject: Re: Restore a version of a node property In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > This described method works fine for me, however how do I get a property = of > the rootNode of the history? As far as I can see it starts with the first > revision but not with the original node I saved in the very beginning... when a new versionable node is created, it also creates the respective version-history node in the version storage. i also creates a root-version, which is empty. the root-version simply acts as 'sentinel' for the 'jcr:predecessors' and 'jcr:baseVersion' references. when you checkin the node, it's content get copied into the 1.0 version in the version storage (according to the OnParentVersion) properties. read the versioning chapter of jsr170 for a more detailed explanation. regards, toby > > Anybody got an idea? > > Thanks, Oliver > > > > On 03.04.2006 21:33 Uhr, "David Gillen" wrote: > > > Tobias Bocanegra day.com> writes: > >> > >> hi oliver, > >> you can access the content of the version directly in the jcr:versionS= torage. > >> either by searching for your version, or by using the version history: > >> > >> node.getVersionHistory().getVersion(xyz).getNode > > ("jcr:frozenNode").getProperty("yourprop"); > >> > > > > > > Hello, > > > > I have the same issue as the original poster, and I'm having trouble ma= king > > the suggestion above work > > for me. I keep getting: > > > > javax.jcr.PathNotFoundException: myprop > > at org.apache.jackrabbit.core.NodeImpl.getProperty(NodeImpl.java:2423) > > > > where myprop is the name of the property I'm trying to retrieve. When = I run > > through a debugger, and look at the propertyNames HashMap within the No= deState > > belonging to the node of the older version, I don't see any property na= mes > > listed that I created, only property names that look internal to Jackra= bbit. > > > > I can provide source code that demonstrates this problem. Any ideas? > > > >> regards, toby > > > > -Dave > > > > > > -- > Oliver Wehrens > +49 170 785 1323 > http://wehrens.net/oliver > > > > > > > -- -----------------------------------------< tobias.bocanegra@day.com >--- Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel T +41 61 226 98 98, F +41 61 226 98 97 -----------------------------------------------< http://www.day.com >---