Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 21055 invoked from network); 26 Apr 2010 08:44:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Apr 2010 08:44:02 -0000 Received: (qmail 86064 invoked by uid 500); 26 Apr 2010 08:44:02 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 85968 invoked by uid 500); 26 Apr 2010 08:44:01 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 85960 invoked by uid 99); 26 Apr 2010 08:44:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Apr 2010 08:44:01 +0000 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=AWL,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 26 Apr 2010 08:43:54 +0000 Received: (qmail 6044 invoked from network); 26 Apr 2010 08:43:34 -0000 Received: from unknown (HELO ?IPv6:::1?) (127.0.0.1) by localhost with SMTP; 26 Apr 2010 08:43:34 -0000 Message-Id: From: Andrus Adamchik To: user@cayenne.apache.org In-Reply-To: <611F7694-8ADE-42B1-87F6-3295FC1B6FEB@earthlink.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: RelationshipQuery Date: Mon, 26 Apr 2010 16:43:32 +0800 References: <611F7694-8ADE-42B1-87F6-3295FC1B6FEB@earthlink.net> X-Mailer: Apple Mail (2.936) You are. A regular SelectQuery should work. You can use relationship path to qualify on FK. E.g. int id = ..; ExpressionFactory.matchExp("artist", id); Andrus On Apr 26, 2010, at 2:32 PM, Joe Baldwin wrote: > I asked this question previously but did not see a reply. > > > I am trying to create a very fast custom fetch that is essentially a > qualified relationship. My relationships are based on an integer > "oid" field. > > Can I use the RelationshipQuery and qualify it? Or am I on the wrong > track?