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 73D8BD50E for ; Tue, 9 Oct 2012 11:46:11 +0000 (UTC) Received: (qmail 35975 invoked by uid 500); 9 Oct 2012 11:46:11 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 35308 invoked by uid 500); 9 Oct 2012 11:46:05 -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 35243 invoked by uid 99); 9 Oct 2012 11:46:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2012 11:46:03 +0000 Date: Tue, 9 Oct 2012 11:46:03 +0000 (UTC) From: "Rick Curtis (JIRA)" To: dev@openjpa.apache.org Message-ID: <1011658485.13867.1349783163509.JavaMail.jiratomcat@arcas> Subject: [jira] [Work started] (OPENJPA-1532) Should the element in a persistence unit definition automatically turn on the data cache? 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-1532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Work on OPENJPA-1532 started by Rick Curtis. > Should the element in a persistence unit definition automatically turn on the data cache? > ------------------------------------------------------------------------------------------------------------- > > Key: OPENJPA-1532 > URL: https://issues.apache.org/jira/browse/OPENJPA-1532 > Project: OpenJPA > Issue Type: Question > Components: datacache > Affects Versions: 2.0.0, 2.1.0, 2.2.0 > Reporter: Jody Grassel > Assignee: Rick Curtis > Priority: Minor > Fix For: 2.3.0 > > Attachments: OPENJPA-1532-Doc.patch, OPENJPA-1532.patch, OPENJPA-1532.patch.txt > > > The JPA 2.0 spec introduces a new persistence unit definition element, , which accepts NONE, ALL, ENABLE_SELECTIVE, and DISABLE_SELECTIVE. The JPA 2.0 spec section 3.7.1 documents the behavior of each of those modes. > What I am curious about is if the use of should implicitly enable OpenJPA's data cache plugin. Currently, the above element is completely ignored if the persistence unit is missing the properties: openjpa.DataCache=true and openjpa.RemoteCommitProvider=sjvm (because by default, OpenJPA disables data caching). My interpretation of the spec suggests that is not only a platform-independent method of instructing the data cache which entities are eligible for admittance to the data cache, but it is also a switch providing a platform-independent method of both turning the data cache on or off (since whether the cache is enabled by default is platform-specific). Otherwise, why have a NONE value, if it was not intended to be a platform independent means of turning the data cache off? -- 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