You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2009/10/22 10:04:59 UTC

[jira] Updated: (CAY-1141) Attribute overrides in SelectTranslator are broken

     [ https://issues.apache.org/jira/browse/CAY-1141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik updated CAY-1141:
---------------------------------

    Fix Version/s:     (was: 3.0)
                   3.1

> Attribute overrides in SelectTranslator are broken
> --------------------------------------------------
>
>                 Key: CAY-1141
>                 URL: https://issues.apache.org/jira/browse/CAY-1141
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Cayenne Core Library
>    Affects Versions: 3.0M5
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>            Priority: Minor
>             Fix For: 3.1
>
>
> CAY_207Test seems to succeed only by coincidence. When I am running it standalone from Eclipse, it fails; when it is run as a part of the test batch, it succeeds (also work done locally on some other issues, reshuffled something in the mapping, so the tests started failing even in batch mode).... 
> CAY_207Test.java:
>             Manager o1 = DataObjectUtils.objectForPK(context, Manager.class, 1);
>             assertTrue(o1 instanceof CAY_207Manager1);
>             Object p1 = o1.readProperty("clientContactType");
>             assertNotNull(p1); // this fails
> Looks like SelectTranslator.appendColumn(..) is at fault. It does not handle correctly multiple ObjAttributes from peer entities in the same inheritance hierarchy , always forcing VOID type on all but one subclass (which one is really random and depends on mapping internals). So this results in a NULL value returned for the affected subclasses.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.