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 D721C9DE4 for ; Tue, 28 Feb 2012 22:45:49 +0000 (UTC) Received: (qmail 32446 invoked by uid 500); 28 Feb 2012 22:45:49 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 32428 invoked by uid 500); 28 Feb 2012 22:45:49 -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 32420 invoked by uid 99); 28 Feb 2012 22:45:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2012 22:45:49 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of johnthuss@gmail.com designates 209.85.216.50 as permitted sender) Received: from [209.85.216.50] (HELO mail-qw0-f50.google.com) (209.85.216.50) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2012 22:45:41 +0000 Received: by qabg27 with SMTP id g27so2106535qab.16 for ; Tue, 28 Feb 2012 14:45:20 -0800 (PST) Received-SPF: pass (google.com: domain of johnthuss@gmail.com designates 10.224.181.199 as permitted sender) client-ip=10.224.181.199; Authentication-Results: mr.google.com; spf=pass (google.com: domain of johnthuss@gmail.com designates 10.224.181.199 as permitted sender) smtp.mail=johnthuss@gmail.com; dkim=pass header.i=johnthuss@gmail.com Received: from mr.google.com ([10.224.181.199]) by 10.224.181.199 with SMTP id bz7mr15949589qab.69.1330469120813 (num_hops = 1); Tue, 28 Feb 2012 14:45:20 -0800 (PST) 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=TFqin8AMNyQ0qnvDTJI+DWx2H4Zl3zMLnpGgYH/sBa8=; b=jYKolUobvi8rRi/m/QtuGs00UD5TSQZvfn2bKS6AoUmL9ZaJAYvX+R8ZYuUX4uxUGe c5Yd4H2GV7QwCs3Bxj4uprzpHz49sU974dtNatBD3I1qzLCT4wpwPpe2ybahLQGLo8xb AwKwDzxV/fsxW0Br0acvzt1V1EpkE2ZCchrcE= MIME-Version: 1.0 Received: by 10.224.181.199 with SMTP id bz7mr13457526qab.69.1330469120762; Tue, 28 Feb 2012 14:45:20 -0800 (PST) Received: by 10.229.41.4 with HTTP; Tue, 28 Feb 2012 14:45:20 -0800 (PST) In-Reply-To: References: Date: Tue, 28 Feb 2012 16:45:20 -0600 Message-ID: Subject: Re: Auto-creation of reverse relationships From: John Huss To: user@cayenne.apache.org Content-Type: multipart/alternative; boundary=20cf303b3eed53e2e204ba0dfb96 X-Virus-Checked: Checked by ClamAV on apache.org --20cf303b3eed53e2e204ba0dfb96 Content-Type: text/plain; charset=ISO-8859-1 This comes from EntityResolver.applyDBLayerDefaults(). The commit where this was introduced (Revision 606720) says: "JPA: adding extra step - connecting reverse relationships on Cayenne end for consistent runtime..." So is it OK to turn this off? Or will things blow up? Thanks, John On Wed, Feb 22, 2012 at 1:44 PM, John Huss wrote: > When I start up my Cayenne app, I see messages about it adding reverse > relationships in places where I have chosen not to define them in the > DataMap. I'm wondering why it does this and if it is necessary and if it > can be turned off. Here is the message I'm talking about: > > 2012-02-22 19:43:02 EntityResolver [INFO] added runtime complimentary > DbRelationship from Master to Detail > > 2012-02-22 19:43:02 EntityResolver [INFO] added runtime complimentary > ObjRelationship from Master to Detail > > > Thanks, > > John > --20cf303b3eed53e2e204ba0dfb96--