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 6C42C672C for ; Wed, 18 May 2011 23:55:55 +0000 (UTC) Received: (qmail 45798 invoked by uid 500); 18 May 2011 23:55:55 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 45738 invoked by uid 500); 18 May 2011 23:55:54 -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 45730 invoked by uid 99); 18 May 2011 23:55:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 May 2011 23:55:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 18 May 2011 23:55:47 +0000 Received: (qmail 24191 invoked from network); 18 May 2011 23:55:26 -0000 Received: from unknown (HELO ?IPv6:::1?) (127.0.0.1) by localhost with SMTP; 18 May 2011 23:55:26 -0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: Help or sample on vertical inheritance From: Andrus Adamchik In-Reply-To: Date: Wed, 18 May 2011 19:55:26 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: user@cayenne.apache.org X-Mailer: Apple Mail (2.1084) Ok, here is a modified version of that DataMap that has vertical = inheritance mapped correctly. Per = http://cayenne.apache.org/doc30/modeling-vertical-inheritance.html = v-inheritance in Cayenne is the same as single-table, only with = flattened attributes to child tables. So the main change that I made was = mapping Programmer to ARTIST table, and then flattenning "languages" = attribute to "programmer.LANGUAGES".=20 Also removed ObjRelationships between Artist and Programmer. That should = be it.=20 Sorry for delayed reply. Cheers, Andrus =