cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Herrmann (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAY-2047) Relationship mapping with target inheritance
Date Mon, 18 Jan 2016 14:38:39 GMT

    [ https://issues.apache.org/jira/browse/CAY-2047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15105359#comment-15105359
] 

Frank Herrmann commented on CAY-2047:
-------------------------------------

In the ObjRelationship Inspector, the Target drop down seems to be getting ignored completely.
Regardless of what is selected, when the dialog is closed, the Target in the objects relationship
reverts to the first target in the dropdown. Trying to change the target from the Relationships
tab, causes the relationship field to reset. 

Also, changing the Relationship (name) field in ObjRelationship Inspector has no effect. 

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

Mime
View raw message