[
https://issues.apache.org/jira/browse/OPENJPA-1446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Dick updated OPENJPA-1446:
----------------------------------
Due Date: (was: 15/Jan/10)
> @DataCache and @Cacheable not extending to subclasses
> -----------------------------------------------------
>
> Key: OPENJPA-1446
> URL: https://issues.apache.org/jira/browse/OPENJPA-1446
> Project: OpenJPA
> Issue Type: Sub-task
> Components: datacache
> Affects Versions: 2.0.0-M3
> Reporter: Kevin Sutter
>
> While working through issues with the caching testcases enabled for the
> parent JIRA (openjpa-1443), I discovered that the @DataCache(false) setting
> was not getting applied to subclasses in the hierarchy. This annotation is
> supposed to indicate that this Entity should not be cached. One of the tests
> in CacheTest.testCacheNames is attempting to verify that this annotation is
> also applied to any child classes. Unfortunately, this doesn't look to be
> working correctly. So, I temporarily commented out that specific test...
> // assertCacheName(CacheObjectBChild1.class, null);// sub-classes
> should inherit parent's @Cacheable setting
> I couldn't find anywhere in our documentation that @DataCache should apply to
> child Entities or not. But, since this capability is also part of the JPA
> 2.0 specification via the @Cacheable annotation, I figured that we should
> follow suit. I also checked out suite of tests for the @Cacheable annotation
> and we don't seem to be testing the inheritance of this flag either. So, it
> looks like we need to resolve this both for @DataCache and @Cacheable, fix up
> or add more tests, and update the documentation accordingly.
> Thanks,
> Kevin
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira