Return-Path: X-Original-To: apmail-cayenne-user-archive@www.apache.org Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AE78117723 for ; Sat, 26 Sep 2015 07:04:21 +0000 (UTC) Received: (qmail 26461 invoked by uid 500); 26 Sep 2015 07:04:16 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 26433 invoked by uid 500); 26 Sep 2015 07:04:16 -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 26422 invoked by uid 99); 26 Sep 2015 07:04:16 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Sep 2015 07:04:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C182D1809C5 for ; Sat, 26 Sep 2015 07:04:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.36 X-Spam-Level: *** X-Spam-Status: No, score=3.36 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, NO_DNS_FOR_FROM=0.379, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ynDhCVqkxDJa for ; Sat, 26 Sep 2015 07:04:06 +0000 (UTC) Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id BBC4120313 for ; Sat, 26 Sep 2015 07:04:05 +0000 (UTC) Received: by wicfx3 with SMTP id fx3so46209546wic.1 for ; Sat, 26 Sep 2015 00:04:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=1tJ0u2IKgiIe1TlgSIteOcbXEV4nJHyFXpsZ9rRV6k4=; b=expsLd/8UijCA0GmxtHNf2GWyE8RO9wi3TPCoTTXziwWH+hlaQRiaPVAT13f6/oe/0 +oGYLgj7CbPAX8H9RQ3qqQdQmn+M8kAVbZewRT/fldzbx68t88ClMHElJbT3XZBP3Ygx 836I/Vd/spND8y3pfJzpT7d9dACgWxi8NQAlr/FuKQ2ISQISr9MZohgO2kwHDQH3lYMx rGjx5e73CWhkruVeHFTV9wG+gSCf39ZfD7vElqDZSukrZY9kRMaGwb8YOw+FsatPV5Is e49vJmsOaKKXVM3g8zrQmKRx+O2Bufhdlc92WfM4KVsCpKyLWGaeqjgA2z3Dw+dVA7ZA e/yA== X-Gm-Message-State: ALoCoQnN1mJ/2VZhv/6SCatezH2lUU1S0Gff1DzMoJsg2+r5eV4thE/T1p6ysEVVsY3Y7Ic/fn8k MIME-Version: 1.0 X-Received: by 10.194.90.47 with SMTP id bt15mr11316443wjb.18.1443251045155; Sat, 26 Sep 2015 00:04:05 -0700 (PDT) Received: by 10.194.118.133 with HTTP; Sat, 26 Sep 2015 00:04:05 -0700 (PDT) X-Originating-IP: [27.5.102.145] Date: Sat, 26 Sep 2015 12:34:05 +0530 Message-ID: Subject: How to use Join Queries From: Dipesh Jain To: user@cayenne.apache.org Content-Type: multipart/alternative; boundary=047d7bfd0062de6f880520a11138 --047d7bfd0062de6f880520a11138 Content-Type: text/plain; charset=UTF-8 I have searched example for SQL joins using apache cayenne but I found nothing. How can i use selectQuery with Expression for JOINs or I have to use SQLTemplete or EJBQL Query. Like I have a query - " Select p.name, a.address from Person p RIGHT OUTER JOIN Address a ON p.personId = a.personId where p.name LIKE 'Deep%' AND p.age > 18 " then to write it in cayenne ? -- Thanks and Regards Deepesh Jain --047d7bfd0062de6f880520a11138--