Return-Path: X-Original-To: apmail-cayenne-commits-archive@www.apache.org Delivered-To: apmail-cayenne-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3D14F18D0F for ; Fri, 15 Jan 2016 21:32:40 +0000 (UTC) Received: (qmail 22007 invoked by uid 500); 15 Jan 2016 21:32:40 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 21970 invoked by uid 500); 15 Jan 2016 21:32:40 -0000 Mailing-List: contact commits-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 commits@cayenne.apache.org Received: (qmail 21911 invoked by uid 99); 15 Jan 2016 21:32:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2016 21:32:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id F2BFD2C1F57 for ; Fri, 15 Jan 2016 21:32:39 +0000 (UTC) Date: Fri, 15 Jan 2016 21:32:39 +0000 (UTC) From: "Andrus Adamchik (JIRA)" To: commits@cayenne.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAY-2047) Relationship mapping with target inheritance MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAY-2047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15102490#comment-15102490 ] Andrus Adamchik commented on CAY-2047: -------------------------------------- Now that I think of it, such mapping is really wrong, as FK does not really guarantee that it will resolve to an expected subclass. But perhaps the Modeler can be more verbose about it... > Relationship mapping with target inheritance > --------------------------------------------- > > Key: CAY-2047 > URL: https://issues.apache.org/jira/browse/CAY-2047 > Project: Cayenne > Issue Type: Bug > Affects Versions: 3.1 > Reporter: Andrus Adamchik > Assignee: Andrus Adamchik > > Consider the inheritance mapping: > DB_A > ObjSuperA > ObjectSubA extends ObjectSuperA > DB_B > ObjB > There are 2 to-one relationships from DB_B to DB_A based on 2 foreign keys. > Modeler ObjRelationship dialog fails on attempt to map ObjB -> ObjectSubA (a subclass) relationship. It automatically selects a superclass instead. -- This message was sent by Atlassian JIRA (v6.3.4#6332)