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 AB729EA94 for ; Thu, 21 Feb 2013 10:50:13 +0000 (UTC) Received: (qmail 77397 invoked by uid 500); 21 Feb 2013 10:50:13 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 77360 invoked by uid 500); 21 Feb 2013 10:50:13 -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 77341 invoked by uid 99); 21 Feb 2013 10:50:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Feb 2013 10:50:12 +0000 Date: Thu, 21 Feb 2013 10:50:12 +0000 (UTC) From: "Dzmitry Kazimirchyk (JIRA)" To: commits@cayenne.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAY-1798) ROP: Reverse relationships of prefetched entity objects are not filled during server to client objects conversion 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-1798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dzmitry Kazimirchyk updated CAY-1798: ------------------------------------- Attachment: CAY-1798.patch Attaching patch which fixes the issue for your review. Changes are to fill reverse relationships during server to client object conversion inside ObjectDetachOperation. > ROP: Reverse relationships of prefetched entity objects are not filled during server to client objects conversion > ----------------------------------------------------------------------------------------------------------------- > > Key: CAY-1798 > URL: https://issues.apache.org/jira/browse/CAY-1798 > Project: Cayenne > Issue Type: Bug > Components: ROP > Affects Versions: 3.1B2 > Reporter: Dzmitry Kazimirchyk > Attachments: CAY-1798.patch > > > When doing queries with prefetches from client, reverse relationships of prefetched objects are not filled immediately after query execution causing new queries to server when accessed. > E.g.: say we execute query for all artists with prefetch Artist -> Paintings. After query execution if we do artist.getPaintings().get(0).getArtist() then new db query will be executed. -- 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