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 6FF897720 for ; Thu, 3 Nov 2011 13:47:41 +0000 (UTC) Received: (qmail 41187 invoked by uid 500); 3 Nov 2011 13:47:41 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 41167 invoked by uid 500); 3 Nov 2011 13:47:41 -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 41159 invoked by uid 99); 3 Nov 2011 13:47:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2011 13:47:41 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.213.43] (HELO mail-yw0-f43.google.com) (209.85.213.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2011 13:47:36 +0000 Received: by ywp17 with SMTP id 17so1827173ywp.16 for ; Thu, 03 Nov 2011 06:47:15 -0700 (PDT) Received: by 10.236.154.3 with SMTP id g3mr13779895yhk.119.1320328035303; Thu, 03 Nov 2011 06:47:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.147.170.12 with HTTP; Thu, 3 Nov 2011 06:46:54 -0700 (PDT) In-Reply-To: <74AD0588-C55E-447D-A5FF-EBDFBB95BEF9@objectstyle.org> References: <0C324B5D-6F2F-497A-8400-8773CB8D8A54@karlmenn.is> <52B93A9E-DC69-43FA-8D99-7D9BAD0597C8@objectstyle.org> <74AD0588-C55E-447D-A5FF-EBDFBB95BEF9@objectstyle.org> From: Michael Gentry Date: Thu, 3 Nov 2011 09:46:54 -0400 Message-ID: Subject: Re: Relationships between datamaps in different projects To: user@cayenne.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable You'd add to CM a place to look for other other models (either a classpath approach or explicitly identify the other models). CM wouldn't need to edit the other models, but in the relationship inspector allow referencing the other entities in the model group. At least that's a first approach. I didn't use model groups extensively and my memory is a bit rusty. I can try to find more info on them later if that helps. Thanks, mrg On Thu, Nov 3, 2011 at 9:33 AM, Andrus Adamchik wr= ote: > What does that mean in practical terms? How do we define that "group" in = the Modeler? > > On Nov 3, 2011, at 4:25 PM, Michael Gentry wrote: > >> EOModeler had model groups where you could reference external models. >> That's probably the approach Cayenne Modeler would need to take. >> >> On Thu, Nov 3, 2011 at 9:12 AM, Andrus Adamchik = wrote: >>> This is one of the unsolved things. The relationships between DataMaps = are supported in runtime (all DataMaps are loaded in a single namespace, so= entities can reference each other freely). >>> >>> During modeling I am not sure how we can do that. We just had this disc= ussion in my company recently, but no solution yet. If there are ideas how = that can be implemented, let's discuss. >>> >>> Andrus >>> >>> >>> On Nov 3, 2011, at 1:45 PM, Hugi Thordarson wrote: >>> >>>> Hi all! >>>> >>>> Most of our projects share a set of common DB tables (users, permissio= ns etc). The code and cayenne.xml for these entities resides in a standalon= e project, works great. >>>> However, I'm wondering if I can create relationships from entities in = our client projects to entities in the common project? And if so, do I have= to do it in code, or is there any way for CayenneModeler to pick up the en= tities in the common project, so I can model the relationships in the GUI? >>>> >>>> Cheers, >>>> - hugi >>>> >>>> >>>> PS: =A0I started a huge thread regarding outer joins, and I haven't ha= d the time to respond yet. Preparing a massive thesis on that one ;-) >>> >>> >> > >