cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <>
Subject [jira] Created: (CAY-1141) Attribute overrides in SelectTranslator are broken
Date Thu, 27 Nov 2008 21:10:12 GMT
Attribute overrides in SelectTranslator are broken

                 Key: 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.0

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

            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.

View raw message