Return-Path: Delivered-To: apmail-cayenne-dev-archive@www.apache.org Received: (qmail 23007 invoked from network); 13 Jan 2010 01:36:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jan 2010 01:36:49 -0000 Received: (qmail 57520 invoked by uid 500); 13 Jan 2010 01:36:49 -0000 Delivered-To: apmail-cayenne-dev-archive@cayenne.apache.org Received: (qmail 57471 invoked by uid 500); 13 Jan 2010 01:36:49 -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 57460 invoked by uid 99); 13 Jan 2010 01:36:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 01:36:49 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [204.13.248.72] (HELO mho-02-ewr.mailhop.org) (204.13.248.72) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 01:36:38 +0000 Received: from cpe-69-204-104-44.buffalo.res.rr.com ([69.204.104.44] helo=insysware.insysware.com) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:RC4-MD5:128) (Exim 4.68) (envelope-from ) id 1NUs9h-0005jF-73 for dev@cayenne.apache.org; Wed, 13 Jan 2010 01:36:17 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 69.204.104.44 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX196wLGEttMBDJwfNO5tySB5AkVBKQT1f7g= Subject: RE: Mapping fake FKs as relationships? Date: Tue, 12 Jan 2010 21:01:33 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable In-Reply-To: <4B4AD9DB.3040206@maniatis.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-class: urn:content-classes:message Thread-Topic: Mapping fake FKs as relationships? X-MimeOLE: Produced By Microsoft Exchange V6.5 thread-index: AcqTTdkpf5/HtrknTOSCGLzn1JHSHwAop0xA References: <964863.58539.qm@web114019.mail.gq1.yahoo.com> <8B16E286-0A0A-458E-8ACC-E13964C9F631@objectstyle.org> <4B4A52DF.8010901@maniatis.org> <7e3605161001101708x60c787ewede638f99bb8d762@mail.gmail.com> <4B4A7D2D.4060304@maniatis.org> <4B4AD9DB.3040206@maniatis.org> From: "Zissis Trabaris" To: Qualifiers on dbRelationships would be really nice. The only way to do this right now is to overload the assessor methods. It would be really nice if it where modeled in and if the add methods would run the qualifier and throw an exception if the added object entity did not comply. Zissis Trabaris * Chief Technology Officer * INSYSWARE * 3235 West River Road, Grand Island, New York, 14072, USA=20 Mobile (716) 930-5654 * Office (518) 636-4118 * Fax (716) 625-1305 * z.trabaris@insysware.com * www.insysware.com=20 CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you.=20 -----Original Message----- From: Aristedes Maniatis [mailto:ari@maniatis.org]=20 Sent: Monday, January 11, 2010 2:57 AM To: dev@cayenne.apache.org Subject: Re: Mapping fake FKs as relationships? On 11/01/10 12:21 PM, Aristedes Maniatis wrote: > Do you think this is achievable? Andrus, I know you've looked at > vertical inheritance... do you think this would be a natural extension > of that work, or quite different? Thinking about this a bit more (it actually solves a problem I have right now): maybe my introduction of the interface idea is a red-herring. That could be useful, but isn't really the core of the problem. Instead, what we need are qualifiers on db_Relationships. We already have a very similar idea in inheritance. Let me know if you want me to flesh out the idea in more detail, or if it is obvious from what I've mentioned so far how it might work. Ari --=20 --------------------------> Aristedes Maniatis GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A