You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by "Tore Halset (JIRA)" <de...@cayenne.apache.org> on 2008/01/17 09:34:34 UTC
[JIRA] Commented: (CAY-966) ObjRelationsship's are not removed
processing DropColumnToModel
[ https://issues.apache.org/cayenne/browse/CAY-966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12686#action_12686 ]
Tore Halset commented on CAY-966:
---------------------------------
This should probably not be fixed in DbEntity, but in the DropColumnToModel token. I will take a look at it.
> ObjRelationsship's are not removed processing DropColumnToModel
> ---------------------------------------------------------------
>
> Key: CAY-966
> URL: https://issues.apache.org/cayenne/browse/CAY-966
> Project: Cayenne
> Issue Type: Bug
> Components: Cayenne Core Library
> Affects Versions: 3.0
> Environment: all
> Reporter: Øyvind Harboe
> Assignee: Tore Halset
> Attachments: DbEntity.java
>
>
> I'll attatch a modified DbEntity.java that fixes the problem here.... Basically the code below won't work right because the ObjRelationship's aren't removed.
> MergerContext mergerContext = new ExecutingMergerContext(
> payBackDataMap, dataNode);
> for (MergerToken token : tokens)
> {
> if (token.getDirection() == MergeDirection.TO_DB)
> {
> token = token.createReverse(dataNode.getAdapter()
> .mergerFactory());
> }
> token.execute(mergerContext);
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.