Return-Path: X-Original-To: apmail-cayenne-commits-archive@www.apache.org Delivered-To: apmail-cayenne-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DA5CD10543 for ; Wed, 24 Jul 2013 14:01:50 +0000 (UTC) Received: (qmail 84793 invoked by uid 500); 24 Jul 2013 14:01:50 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 84782 invoked by uid 500); 24 Jul 2013 14:01:50 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 84767 invoked by uid 99); 24 Jul 2013 14:01:50 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jul 2013 14:01:50 +0000 Date: Wed, 24 Jul 2013 14:01:50 +0000 (UTC) From: "Andrus Adamchik (JIRA)" To: commits@cayenne.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (CAY-1695) Unexpected null value in bidirectional one-to-one prefetch MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAY-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrus Adamchik closed CAY-1695. -------------------------------- Resolution: Fixed fixed by tracking all operation objects in a special tx-scoped HashMap. > Unexpected null value in bidirectional one-to-one prefetch > ---------------------------------------------------------- > > Key: CAY-1695 > URL: https://issues.apache.org/jira/browse/CAY-1695 > Project: Cayenne > Issue Type: Bug > Components: Core Library > Affects Versions: 3.1M3 > Reporter: Andrei Veprev > Assignee: Andrus Adamchik > Fix For: 3.2M2 > > Attachments: 0001-CAY-1695-Unexpected-null-value-in-bidirectional-one-.patch, CAY-1695-test.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: http://www.atlassian.com/software/jira