Return-Path: Delivered-To: apmail-cayenne-dev-archive@www.apache.org Received: (qmail 82580 invoked from network); 11 Jan 2010 15:28:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jan 2010 15:28:58 -0000 Received: (qmail 5817 invoked by uid 500); 11 Jan 2010 15:28:58 -0000 Delivered-To: apmail-cayenne-dev-archive@cayenne.apache.org Received: (qmail 5801 invoked by uid 500); 11 Jan 2010 15:28:57 -0000 Mailing-List: contact dev-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list dev@cayenne.apache.org Received: (qmail 5791 invoked by uid 99); 11 Jan 2010 15:28:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jan 2010 15:28:57 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.44.41] (HELO n69.bullet.mail.sp1.yahoo.com) (98.136.44.41) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 11 Jan 2010 15:28:48 +0000 Received: from [69.147.84.144] by n69.bullet.mail.sp1.yahoo.com with NNFMP; 11 Jan 2010 15:28:27 -0000 Received: from [67.195.9.81] by t6.bullet.mail.sp1.yahoo.com with NNFMP; 11 Jan 2010 15:28:27 -0000 Received: from [67.195.9.100] by t1.bullet.mail.gq1.yahoo.com with NNFMP; 11 Jan 2010 15:28:27 -0000 Received: from [127.0.0.1] by omp104.mail.gq1.yahoo.com with NNFMP; 11 Jan 2010 15:28:27 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 31387.34051.bm@omp104.mail.gq1.yahoo.com Received: (qmail 88300 invoked by uid 60001); 11 Jan 2010 15:28:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1263223706; bh=qdoe37+JBW3CrF7og48JKmTqji1rd5bj/zLQFsnNXKY=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=036+WKFdYrNc0U3n8lOousCxZHLnal/7fJP6777AkDIjUoFqlL22aJy4wklbCtra92pahd1AKpw7JTSxzBEdP94jcEfjA1aa5o3x/YOviQZPuny+W0lyPNeNT0JG9xZztswwwiJFpCupLs6rXlb5p7q2IOMwjdDs74lzydzDaDU= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=CHnc/5PDKolSGgnztVPqury2irIzlUCDnHoxl4z6A6o3XCYvX0QebqojiY6LEC19HDu7MpOlSbapjaJPtG6vV8mCcvmwTk7wV0XP79rNbxopobbeY6FlPr9/cycaGoBn6RnhZd6qDf6aeFNvXKWe+OydwdCc/UmX0nxxtCttt4s=; Message-ID: <850412.86952.qm@web114002.mail.gq1.yahoo.com> X-YMail-OSG: lPR5NlUVM1mNcwfk70AH8f81UNFkNw4xXMkNcQo9BN1_rqhy62xTvZ6rsJDwRbpkGpXN8hSilHZygKy49uSD7aPkkWFWJjRonf_22yES.DM8gH6AvQW4AyhqVQiiUrWIPNXovIb9E1_jzq0lfp6teNJvLZ8776JQsvbJCcA5FhF7JdTAIhltMc_lYDfJHpPzRCtJwRT7mqK0HXEuwLySom5LY.qqJgZaBYHm1YBFX5mKvHYVX3Qcwp88imKYnqIhl0VV Received: from [85.122.62.194] by web114002.mail.gq1.yahoo.com via HTTP; Mon, 11 Jan 2010 07:28:26 PST X-Mailer: YahooMailClassic/9.0.20 YahooMailWebService/0.8.100.260964 Date: Mon, 11 Jan 2010 07:28:26 -0800 (PST) From: George Stan Subject: Re: Mapping fake FKs as relationships? To: dev@cayenne.apache.org In-Reply-To: <4B4A52DF.8010901@maniatis.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Thank you all for your advice. > Having actually done this the first > way Andrus mentions, my advice is to do it the second way > (as an inheritance) if you can. Hmm, I'm trying, but CM seems to allow me only one element for the inheritance :(. Unfortunately, many Entities must inherit from more than one since they have Tags, Comments and Events too:(. > George, could you point us to the documentation for how > ActiveRecord implements this? I'm afraid there's no such documentation, as this is a core Rails feature, there are not too many architecture documents about them - just the sources :(. George.