cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAY-2047) Relationship mapping with target inheritance
Date Fri, 15 Jan 2016 21:32:39 GMT

    [ 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)

Mime
View raw message