Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 69828 invoked from network); 24 Feb 2010 16:08:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Feb 2010 16:08:51 -0000 Received: (qmail 87934 invoked by uid 500); 24 Feb 2010 16:08:50 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 87901 invoked by uid 500); 24 Feb 2010 16:08:50 -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 87865 invoked by uid 99); 24 Feb 2010 16:08:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2010 16:08:50 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2010 16:08:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D256B29A0015 for ; Wed, 24 Feb 2010 08:08:27 -0800 (PST) Message-ID: <812186553.494541267027707847.JavaMail.jira@brutus.apache.org> Date: Wed, 24 Feb 2010 16:08:27 +0000 (UTC) From: "Michael Dick (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Assigned: (OPENJPA-1532) Should the element in a persistence unit definition automatically turn on the data cache? In-Reply-To: <998936951.471651266958047936.JavaMail.jira@brutus.apache.org> 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-1532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Dick reassigned OPENJPA-1532: ------------------------------------- Assignee: Michael Dick > 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-M1, 2.0.0-M2, 2.0.0-M3, 2.0.0-beta, 2.0.0, 2.0.1, 2.1.0 > Reporter: Jody Grassel > Assignee: Michael Dick > Priority: Minor > > 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. - You can reply to this email to add a comment to the issue online.