cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikita Timofeev (Jira)" <j...@apache.org>
Subject [jira] [Updated] (CAY-2488) Problem with not to PK relationships
Date Mon, 26 Aug 2019 12:59:00 GMT

     [ https://issues.apache.org/jira/browse/CAY-2488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nikita Timofeev updated CAY-2488:
---------------------------------
    Fix Version/s:     (was: 4.2.M1)
                   4.2.M2

> Problem with not to PK relationships
> ------------------------------------
>
>                 Key: CAY-2488
>                 URL: https://issues.apache.org/jira/browse/CAY-2488
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>            Reporter: Arseni Bulatski
>            Priority: Major
>             Fix For: 4.2.M2
>
>
> Problem with not to PK relationships was found.
>  * create relationship with join not to PK (target or source attribute isn't PK) in modeler
>  * create entities
>  * create relationship between entities
>  * commit changes
> In database objects will be created, but relationship won't be created. So you can't
be able to get joined objects.
> This happens because in you can't create arcDiff.
> Look DataDomainDBDiffBuilder arcCreated method and appendForeignKeys method.
> In current logic you can get only PK attribute value from ObjectId.
> First step is to add validation of this case to prevent creation of this relationship.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message