You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2016/01/15 22:43:39 UTC
[jira] [Updated] (CAY-2047) Relationship mapping with target
inheritance
[ https://issues.apache.org/jira/browse/CAY-2047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrus Adamchik updated CAY-2047:
---------------------------------
Description:
Consider the inheritance mapping:
DB_A
ObjSuperA
ObjectSubA extends ObjectSuperA
(and probably a few more subclasses , some a few levels deep)
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 -> ObjectSuperA (a superclass) relationship. It automatically selects a random subclass instead.
was:
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.
> 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
> (and probably a few more subclasses , some a few levels deep)
> 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 -> ObjectSuperA (a superclass) relationship. It automatically selects a random subclass instead.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)