Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 692E9E216 for ; Wed, 19 Dec 2012 06:55:59 +0000 (UTC) Received: (qmail 50308 invoked by uid 500); 19 Dec 2012 06:55:59 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 50092 invoked by uid 500); 19 Dec 2012 06:55:56 -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 50069 invoked by uid 99); 19 Dec 2012 06:55:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Dec 2012 06:55:55 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aray_cn@163.com designates 220.181.12.15 as permitted sender) Received: from [220.181.12.15] (HELO m12-15.163.com) (220.181.12.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Dec 2012 06:55:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type:Thread-Index:Content-Language; bh=Qeoj skUhl/3mbf8u8Wo8TBuUGNBBIG8Sin+LQuy958E=; b=o3DZ8VgNQFteZa7gxToE 60PTE/SZOTm99e8RcH/gzjMwF4Hz7Gobl4ejW5RQq9UExAZ4B0DyKYtPl/WRGpjS K2azrg1VcpIEFWsSFP5BXETA341+DAhqz8eGocVCZvlxoHNh1tUaVkXkBMSnnWY1 FgpaoAxsoDLJlnMixbfFbSQ= Received: from ArayPC (unknown [122.73.14.9]) by smtp11 (Coremail) with SMTP id D8CowEBZx3_YZNFQXF5pAg--.769S2; Wed, 19 Dec 2012 14:55:20 +0800 (CST) From: To: Subject: Is there some enhanced implement of org.apache.jackrabbit.ocm.query.Query that support check the property of property Date: Wed, 19 Dec 2012 14:55:54 +0800 Message-ID: <000401cdddb5$e4991870$adcb4950$@163.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0005_01CDDDF8.F2C50B00" X-Mailer: Microsoft Outlook 14.0 Thread-Index: Ac3dtIASVAdq2VR0TTKm+ch25UHiDg== Content-Language: zh-cn X-CM-TRANSID: D8CowEBZx3_YZNFQXF5pAg--.769S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrZFy3uFy5XFW3ury3WrWrAFb_yoW3Awb_XF ykKFWjyF45Z3srGF4ayrnrZryfXwsrJr1Iqa4Fyws7GrnxJw1xu3ykJr4DWay3WFy0vrsx Krn8G348J3W0vjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUeIeHDUUUUU== X-CM-SenderInfo: 5dud5slfq6il2tof0z/1tbiOwmKkU9o4soMiQAAsj X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_0005_01CDDDF8.F2C50B00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, guys. Current implement of org.apache.jackrabbit.ocm.query.Query work as following: ObjectContentManager ocm =3D =85; QueryManager qm =3D ocm.getQueryManager(); Filter f =3D qm.createFilter(FooBar.class); f.addContains("name", "balala"); //=DF----------- guys = please focus this line Query q =3D qm.createQuery(f); return ocm.getObjects(q); Above codes return all objects of FooBar.class which FooBar.name = contains =93balala=94. But in my case, I need something like following: f.addContains("user.name", "balala"); =20 Which means FooBar.user.name contains =93balala=94, (or FooBar.getUser().getName contains =94balala=94) Or there were more complex situation: f.addContains("aaa.bbb.ccc.ddd", "balala"); =20 =20 Only reply will be precious, thanks ------=_NextPart_000_0005_01CDDDF8.F2C50B00--