cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <>
Subject [jira] [Closed] (CAY-1695) Unexpected null value in bidirectional one-to-one prefetch
Date Wed, 10 Jul 2013 15:41:49 GMT


Andrus Adamchik closed CAY-1695.

       Resolution: Fixed
    Fix Version/s:     (was: 3.2M1)

Fixed for the attached unit test. The strategy used here is to grab the lowest version of
the data row in a given transaction and use it as a marker to check against object versions.
When creating an object, if we detect that it was already processed in this tx, we skip its
> Unexpected null value in bidirectional one-to-one prefetch
> ----------------------------------------------------------
>                 Key: CAY-1695
>                 URL:
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 3.1M3
>            Reporter: Andrei Veprev
>             Fix For: 3.2M2
>         Attachments: 0001-CAY-1695-Unexpected-null-value-in-bidirectional-one-.patch,
> For example you have User and UserInfo entities. User has one-to-one relationship with
UserInfo. If you try to do select for User with prefetching on userInfo and userInfo.user,
you will get null value for userInfo property:
> SelectQuery query = new SelectQuery(User.class);
> query.addPrefetch("userInfo");
> query.addPrefetch("userInfo.user");
> It doest meter which kind of prefetching do you use. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message