You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Nikita Timofeev (Jira)" <ji...@apache.org> on 2024/06/13 12:07:00 UTC
[jira] [Updated] (CAY-2488) Problem with not to PK relationships
[ 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: 5.0-M2
(was: 5.0-M1)
> 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: 5.0-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.20.10#820010)