openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <curti...@gmail.com>
Subject Re: [jira] [Assigned] (OPENJPA-1532) Should the <shared-cache-mode> element in a persistence unit definition automatically turn on the data cache?
Date Fri, 21 Sep 2012 19:29:39 GMT
>  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 <ppoddar@apache.org> 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
> <shared-data-cache>
> -- but would refrain to do it *automatically* in code.
> At code level, better would be to simply warn
> "you have <shared-cache> 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
> <shared-data-cache>, you *must* activate data cache by
> openjpa.DataCache=true etc.".
>
>
>
>
>
>
>
> -----
> Pinaki Poddar
> Chair, Apache OpenJPA Project
>
> --
*Rick Curtis*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message