From dev-return-18089-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Fri Dec 03 18:22:36 2010 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 32433 invoked from network); 3 Dec 2010 18:22:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Dec 2010 18:22:36 -0000 Received: (qmail 15488 invoked by uid 500); 3 Dec 2010 18:22:36 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 15285 invoked by uid 500); 3 Dec 2010 18:22:35 -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 15277 invoked by uid 99); 3 Dec 2010 18:22:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 18:22:35 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 18:22:32 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB3IMAnE029741 for ; Fri, 3 Dec 2010 18:22:11 GMT Message-ID: <18522893.97541291400530676.JavaMail.jira@thor> Date: Fri, 3 Dec 2010 13:22:10 -0500 (EST) From: "Jeremy Bauer (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-1884) CacheStoreMode.REFRESH is not recognized for entity manager refresh operation In-Reply-To: <31823745.49311289587813526.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-1884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeremy Bauer updated OPENJPA-1884: ---------------------------------- Attachment: OPENJPA-1884-jUnit.patch Attaching a jUnit which demonstrates the issue. > CacheStoreMode.REFRESH is not recognized for entity manager refresh operation > ----------------------------------------------------------------------------- > > Key: OPENJPA-1884 > URL: https://issues.apache.org/jira/browse/OPENJPA-1884 > Project: OpenJPA > Issue Type: Bug > Components: datacache > Affects Versions: 2.1.0 > Reporter: Jeremy Bauer > Assignee: Jeremy Bauer > Attachments: OPENJPA-1884-jUnit.patch > > > Specifying the "javax.persistence.cache.storeMode" property with value CacheStoreMode.REFRESH does not refresh the contents of the L2 cache when used with the em.refresh(entity, props) operation. > OPENJPA-1578 corrected this a similar issue for the em.find() operation, but not em.refresh(). A simple port of the changes from 1578 (which simply configure the store mode in the fetch plan) to the refresh operation did not correct the problem. It appears that more work needs to be done in the underlying refresh logic to produce a cache refresh. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.