Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 18411 invoked from network); 20 Sep 2006 22:34:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Sep 2006 22:34:40 -0000 Received: (qmail 98107 invoked by uid 500); 20 Sep 2006 22:34:39 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 98095 invoked by uid 500); 20 Sep 2006 22:34:39 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 98086 invoked by uid 99); 20 Sep 2006 22:34:39 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Sep 2006 15:34:39 -0700 X-ASF-Spam-Status: No, hits=2.7 required=5.0 tests=FORGED_YAHOO_RCVD,FROM_ENDS_IN_NUMS Received: from [72.21.53.35] ([72.21.53.35:55341] helo=talk.nabble.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 9B/00-01963-3F1C1154 for ; Wed, 20 Sep 2006 15:34:29 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GQAe5-0000KQ-PL for users@jackrabbit.apache.org; Wed, 20 Sep 2006 15:34:21 -0700 Message-ID: <6418106.post@talk.nabble.com> Date: Wed, 20 Sep 2006 15:34:21 -0700 (PDT) From: JavaJ To: users@jackrabbit.apache.org Subject: Re: Version properties In-Reply-To: <6417705.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ponfar99@yahoo.com References: <6417705.post@talk.nabble.com> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N JavaJ wrote: > > I'm having a problem with getting Node properties from the different > Versions of a Node. For example: > > javax.jcr.Node node = session.getNodeByUUID(id); > javax.jcr.version.VersionIterator it = > nodeToRestore.getVersionHistory().getAllVersions(); > while (it.hasNext()) { > javax.jcr.version.Version version = it.nextVersion(); > version.getProperty("myProp"); <-- this throws a > PathNotFoundException > } > > I'm not sure why this throws the exception. I thought that Version is > just a wrapper around the versioned Node. So shouldn't you be able to get > all the properties in that version of the Node? It appears that only the > mix:versionable properties are available, i.e. jcr:predecessors, > jcr:isCheckedOut... > > Is there a way around this? Like maybe a way of getting the versionable > Node? > Ah nevermind. I just had to get the "jcr:frozenNode" child node. Duh. :) -- View this message in context: http://www.nabble.com/Version-properties-tf2308388.html#a6418106 Sent from the Jackrabbit - Users mailing list archive at Nabble.com.