You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Jeff Melching <jm...@us.ibm.com> on 2008/03/13 18:09:30 UTC
disabling DataCache for entities specified in orm.xml
In my application we use orm.xml files rather than annotations to specify
the entities. I am trying to disable the DataCache for certain entities,
but my @DataCache(enabled=false) is being ignored even when I specify
metadata-complete="false" in my orm file. If switch over the entity to
use pure annotations, everything works fine.
Is there any support for adding openjpa specific features when using orm
mapping files, or is this just a bug?
-Jeff
Re: disabling DataCache for entities specified in orm.xml
Posted by Kevin Sutter <kw...@gmail.com>.
Jeff,
OpenJPA-specific annotations (such as
org.apache.openjpa.persistence.DataCache) do not have corresponding xml
elements. We have an existing JIRA Issue to address this issue (
https://issues.apache.org/jira/browse/OPENJPA-125). We also have an open
Issue for the specific problem you are describing where the annotation does
not seem to override any corresponding xml descriptors (
https://issues.apache.org/jira/browse/OPENJPA-87). So, known issues that
just haven't risen to the top yet...
Kevin
<../javadoc/org/apache/openjpa/persistence/DataCache.html>
On Thu, Mar 13, 2008 at 12:09 PM, Jeff Melching <jm...@us.ibm.com> wrote:
> In my application we use orm.xml files rather than annotations to specify
> the entities. I am trying to disable the DataCache for certain entities,
> but my @DataCache(enabled=false) is being ignored even when I specify
> metadata-complete="false" in my orm file. If switch over the entity to
> use pure annotations, everything works fine.
>
> Is there any support for adding openjpa specific features when using orm
> mapping files, or is this just a bug?
>
> -Jeff