[ 
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.1M1)
                   3.1 (final)

> Attribute overrides in SelectTranslator are broken
> --------------------------------------------------
>
>                 Key: CAY-1141
>                 URL: https://issues.apache.org/jira/browse/CAY-1141
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 3.0M5
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>            Priority: Minor
>             Fix For: 3.1 (final)
>
>
> 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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to