[JIRA] Commented: (CAY-966) ObjRelationsship's are not removed processing DropColumnToModel

From: Tore Halset (JIRA) ("Tore)
Date: Mon Jan 21 2008 - 03:44:34 EST

  • Next message: Tore Halset (JIRA): "[JIRA] Commented: (CAY-968) Portable Data with Cayenne - database load/unload feature"

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

    Tore Halset commented on CAY-966:
    ---------------------------------

    I do not know of any nightly build of cayenne, but it should not be that hard to build one yourself. It is also not so long before M3.

    svn co https://svn.apache.org/repos/asf/cayenne/main/trunk/ cayenne
    cd cayenne
    mvn

    After some minutes, this should result in a jar file:
    framework/cayenne-server/target/cayenne-server-3.0-SNAPSHOT.jar

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



    This archive was generated by hypermail 2.0.0 : Mon Jan 21 2008 - 03:45:07 EST