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 9D3F6763B for ; Thu, 25 Aug 2011 18:22:10 +0000 (UTC) Received: (qmail 44198 invoked by uid 500); 25 Aug 2011 18:22:10 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 44151 invoked by uid 500); 25 Aug 2011 18:22:09 -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 44143 invoked by uid 99); 25 Aug 2011 18:22:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2011 18:22:09 +0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of joelbecker0@gmail.com designates 209.85.215.173 as permitted sender) Received: from [209.85.215.173] (HELO mail-ey0-f173.google.com) (209.85.215.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2011 18:22:02 +0000 Received: by eyb7 with SMTP id 7so2271348eyb.4 for ; Thu, 25 Aug 2011 11:21:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=8L7HM3m+7bTPhUCIBb6XBNCHJ3mprDlZRk9oQHa4jpE=; b=IF5KlwfG3VKsB769FSTnkLiVw6pOaFiHEfsfOuLaVDarH9AkiRWkVdeoO4pycT5eUJ rUOFOAlhJpX01OUPYr6TM0iYx77xeu/pmotPozBKGjJpywG4yJ4TpXLhMZXPr2U+TbnZ XRjAdo2gA8PGvVQNvahQhS/fj0YoisCjvd8mU= MIME-Version: 1.0 Received: by 10.213.4.197 with SMTP id 5mr1282675ebs.126.1314296502116; Thu, 25 Aug 2011 11:21:42 -0700 (PDT) Received: by 10.213.35.196 with HTTP; Thu, 25 Aug 2011 11:21:42 -0700 (PDT) In-Reply-To: References: Date: Thu, 25 Aug 2011 13:21:42 -0500 Message-ID: Subject: Re: "Has no joins" warning; path not available in ObjEntity Inspector dialog From: Joel Becker To: user@cayenne.apache.org Content-Type: multipart/alternative; boundary=0015174c33ee2360a704ab588024 X-Virus-Checked: Checked by ClamAV on apache.org --0015174c33ee2360a704ab588024 Content-Type: text/plain; charset=ISO-8859-1 Nevermind, I was doing it incorrectly: i hadn't used the inspector on the entity table, and couldn't because the button was disabled, until i selected a target first. i found out the correct steps for creating relationships by following the mapping tutorial: http://cayenne.apache.org/doc20/tutorial-object-relational-mapping.html (As I figure things out I'm taking notes on the correct steps for creating a complete successful mapping in the modeller, so that I don't forget.) Thanks. On Thu, Aug 25, 2011 at 10:55 AM, Andrus Adamchik wrote: > To answer this question we need to see the data map XML. Could you paste it > to a reply message? > > On Aug 25, 2011, at 6:48 PM, Joel Becker wrote: > > > Hi. When Cayenne Modeller validates my mapping, i get several "...has no > > joins" warnings for different entities. I found this thread on the issue > > which suggests using the ObjEntity Inspector > > > http://mail-archives.apache.org/mod_mbox/cayenne-user/200908.mbox/%3C3219fff70908290746t33f8c0c2p664809225c5fb4ea@mail.gmail.com%3E > > > > In the entity the "Database Mapping" icon (which i assume is the > "inspector" > > for entities) is disabled, so I go to the entity's corresponding object > and > > open the inspector for the corresponding relationship. When I go to > select > > the path to the target object, the object is unavailable in the path > lists > > at the bottom of the dialog. How does the dialog choose which paths to > > include? (I couldn't find any documentation on using that dialog, except > for > > the page on flattening many-to-many relationships.) > > > > Regardless of the path selector at the bottom of the dialog, it already > has > > the correct Target selected in the drop-down combo box, so i click done, > but > > still get the warning. I also verified that the related entity has the > other > > side of the relationship (to many). > > --0015174c33ee2360a704ab588024--