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 8FA9DDCED for ; Mon, 24 Sep 2012 16:38:33 +0000 (UTC) Received: (qmail 40648 invoked by uid 500); 24 Sep 2012 16:38:33 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 40615 invoked by uid 500); 24 Sep 2012 16:38:33 -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 40607 invoked by uid 99); 24 Sep 2012 16:38:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2012 16:38:33 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kwsutter@gmail.com designates 209.85.212.46 as permitted sender) Received: from [209.85.212.46] (HELO mail-vb0-f46.google.com) (209.85.212.46) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2012 16:38:26 +0000 Received: by vbbff1 with SMTP id ff1so7348967vbb.33 for ; Mon, 24 Sep 2012 09:38:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=NCXYRveHBvILIgWqyWRHLLSPME9z0DjANPPXoA1d+dI=; b=BzXePZ1GNa9usbMbTTnx3FVQ8D0pysecDeCXuGfZ0uimpuXCxJvJsBW6gJevgQRfDn ZgKhuHQMr807I/umdOKTrwY6BYCWMcf/x7/4i9qb6M6DqU5ah7ctouKlR+9jz8cErQC2 YYRLwHNJ/UjkwkFDJtRJD+RLT6Nf54ADNtzzimijKxM4J86H3ZFodO1RfMwTDxoXwy+9 g9woMAEZI/e2e6Kjk4Q+ojmSlr9JTP+EsJWz9IA6F/FQaqH+NyfjofPRh05S9OP9PuM6 blPC6QJWS+f7sRUChvc9nMDB6PuCkJAWNHW7k7/Z1wrztdxcRF1ffJX1YCZMzTNjuvw/ H11w== Received: by 10.58.4.33 with SMTP id h1mr8065629veh.38.1348504686037; Mon, 24 Sep 2012 09:38:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.11.168 with HTTP; Mon, 24 Sep 2012 09:37:45 -0700 (PDT) In-Reply-To: References: <1273321545.89175.1347909967657.JavaMail.jiratomcat@arcas> <1348187036441-7581158.post@n2.nabble.com> From: Kevin Sutter Date: Mon, 24 Sep 2012 11:37:45 -0500 Message-ID: Subject: Re: [jira] [Assigned] (OPENJPA-1532) Should the element in a persistence unit definition automatically turn on the data cache? To: dev@openjpa.apache.org Content-Type: multipart/alternative; boundary=047d7b5d8831ca0bd604ca753602 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b5d8831ca0bd604ca753602 Content-Type: text/plain; charset=ISO-8859-1 Please post these type of discussions directly to the OPENJPA-1532 JIRA so that we have the history where it's needed. I have already voiced my view in the JIRA -- the JPA 2 configuration should direct our internal property settings. Much like we did with the javax.persistence.* properties for the datasource. We didn't tell users to re-define their requests via the openjpa.Connection* properties. Sure, we have some "merging" conflicts to detect and report and act on, but these are not insurmountable. I've had several discussions with customers that ask why doesn't enable the data cache. Unless someone can show in the spec where this should not control the cache, I'm in favor of having it control our datacache support. I think section 3.7.1 is pretty clear on the intent of enablement or disablement of the cache based on this property. Kevin On Fri, Sep 21, 2012 at 2:29 PM, Rick Curtis wrote: > > It would lead to complications. > What other complications are you concerned with? > > I don't like the fact that to use the JPA2 way of caching requires two > properties to enable caching. > > On Thu, Sep 20, 2012 at 7:23 PM, Pinaki Poddar wrote: > > > Rick, > > Having one configuration impacting another is not recommendable. It > would > > lead to complications. > > I am not arguing about rationale of active DataCache for > > > > -- but would refrain to do it *automatically* in code. > > At code level, better would be to simply warn > > "you have but your data cache is not active. This > directive > > will be ignored unless you ..." > > > > The issue should be handled at documentation level: "if you are using > > , you *must* activate data cache by > > openjpa.DataCache=true etc.". > > > > > > > > > > > > > > > > ----- > > Pinaki Poddar > > Chair, Apache OpenJPA Project > > > > -- > *Rick Curtis* > --047d7b5d8831ca0bd604ca753602--