Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F19DC1080B for ; Wed, 4 Jun 2014 20:15:02 +0000 (UTC) Received: (qmail 81016 invoked by uid 500); 4 Jun 2014 20:15:02 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 80907 invoked by uid 500); 4 Jun 2014 20:15:02 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 80737 invoked by uid 99); 4 Jun 2014 20:15:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2014 20:15:02 +0000 Date: Wed, 4 Jun 2014 20:15:02 +0000 (UTC) From: "Albert Lee (JIRA)" To: dev@openjpa.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (OPENJPA-2508) LEFT JOIN FETCH not honored when data cache is enabled 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/OPENJPA-2508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Albert Lee updated OPENJPA-2508: -------------------------------- Attachment: qcsq.v2.patch Revised (v2) patch by Rick C. I have tested it and passed the TestNPE2, JUnit and my application. > LEFT JOIN FETCH not honored when data cache is enabled > ------------------------------------------------------ > > Key: OPENJPA-2508 > URL: https://issues.apache.org/jira/browse/OPENJPA-2508 > Project: OpenJPA > Issue Type: Bug > Components: datacache > Affects Versions: 2.2.2, 2.2.1.1 > Reporter: Albert Lee > Assignee: Rick Curtis > Attachments: OPENJPA-2508.221x.patch, OPENJPA-2508.test.zip, qcsq.v2.patch > > > In a simple JPQL with left join fetch for a lazy loaded association specified and data cached enabled, first time the query executed, the lazy loaded association get loaded, returned and cached. Subsequent invocation of the same query does NOT "load" and return the association from the query invocation. > I'll attach a test case to reproduce the problem. -- This message was sent by Atlassian JIRA (v6.2#6252)