XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.0-M3
    • None
    • datacache
    • None

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            kwsutter Kevin W. Sutter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: