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 2017/08/17 09:33:00 UTC
[jira] [Closed] (CAY-2347) cdbimport - can't get all relationships
on the first pass
[ https://issues.apache.org/jira/browse/CAY-2347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nikita Timofeev closed CAY-2347.
--------------------------------
Resolution: Fixed
This was actually fixed along with CAY-2321.
Additional test case was added.
*STABLE-4.0*: https://github.com/apache/cayenne/commit/f6a2f4c784dca89d4125edab8b3cb86cff1407bb
*MASTER*: https://github.com/apache/cayenne/commit/de0969a08bbb0ed1a0f834ef3a409f1ae03d7856
> cdbimport - can't get all relationships on the first pass
> ---------------------------------------------------------
>
> Key: CAY-2347
> URL: https://issues.apache.org/jira/browse/CAY-2347
> Project: Cayenne
> Issue Type: Bug
> Environment: 4.0.B1, MySQL 5.6
> Reporter: Andrus Adamchik
> Assignee: Nikita Timofeev
>
> Existing Schema:
> {noformat}
> Table A
> id PK
> {noformat}
> New Schema Additions:
> {noformat}
> Table B
> id PK
> Table A_B
> a_id PK/FK
> b_id PK/FK
> {noformat}
> When I run cdbimport, all looks good except relationship from A to A_B is not created, and as a result A_B is not flattened.
> When I run cdbimport for the second time without changing the schema, the missing relationship is created, but of course flattenning does not occur (as there's already an AB ObjEntity).
> Expected: that missing relationship should be picked up on the first run.
>
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)