Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 36301 invoked from network); 9 Feb 2009 17:49:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Feb 2009 17:49:07 -0000 Received: (qmail 45015 invoked by uid 500); 9 Feb 2009 17:49:05 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 44996 invoked by uid 500); 9 Feb 2009 17:49:05 -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 44985 invoked by uid 99); 9 Feb 2009 17:49:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2009 09:49:05 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2009 17:48:57 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LWaFI-0005ZZ-1J for users@jackrabbit.apache.org; Mon, 09 Feb 2009 09:48:36 -0800 Message-ID: <21918082.post@talk.nabble.com> Date: Mon, 9 Feb 2009 09:48:36 -0800 (PST) From: "g.reinhart" To: users@jackrabbit.apache.org Subject: Re: OCM, queries and version history In-Reply-To: <3b728ee90901160147v57a9c4b0pee3a1ade92e03569@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: greinhart.dev@googlemail.com References: <496E161F.4010504@imnet.it> <3b728ee90901160147v57a9c4b0pee3a1ade92e03569@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Christophe Lombart wrote: > > There is a workaround but this is not the ideal solution : > Make your own jcr query to get versions (as explained in the jcr > specification - see 8.2.2.2) and get the object with the ocm method > getObject(String path, String versionName) > To make your own jcr query on MyObject.class classes, you can use the QueryManager ? I don't thing this king of code would work : QueryManager queryManager = ocm.getQueryManager(); Filter filterChange = queryManager.createFilter(MyObject.class ); filterChange.setScope( "/jcr:system/jcr:versionStrorage//"); -- View this message in context: http://www.nabble.com/OCM%2C-queries-and-version-history-tp21459838p21918082.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.