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

Øyvind Harboe commented on CAY-966:
-----------------------------------

The build failed....


INFO: SELECT t0.ARTIST_NAME, t0.ARTIST_ID, t0.DATE_OF_BIRTH FROM ARTIST t0 WHERE
 t0.ARTIST_ID = ? [bind: 1->ARTIST_ID:33002]
Jan 21, 2008 10:13:36 AM org.apache.cayenne.access.QueryLogger logSelectCount
INFO: === returned 1 row. - took 1 ms.
Jan 21, 2008 10:13:36 AM org.apache.cayenne.access.QueryLogger logCommitTransact
ion
INFO: +++ transaction committed.
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.458 sec

Results :

Tests in error:
  testConstructorWithProperties(org.apache.cayenne.access.DataRowStoreTest)

Tests run: 1920, Failures: 0, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to /home/oyvind/cayenne/framework/cayenne-jdk1.5-unpublished/target
/surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 2 seconds
[INFO] Finished at: Mon Jan 21 10:13:36 GMT 2008
[INFO] Final Memory: 17M/39M
[INFO] ------------------------------------------------------------------------
[EMAIL PROTECTED]:~/cayenne$

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

Reply via email to