Uploaded image for project: 'Hibernate ORM'
  1. HHH-11142

Document supported use/implications of @Cache / @Cacheable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.2.21, 5.0.9, 5.2.2, 5.1.2
    • Fix Version/s: 5.2.4, 5.1.3, 5.0.12
    • Component/s: documentation
    • Labels:
      None
    • Last commented by a user?:
      true
    • Sprint:

      Description

      Hibernate permits enabling / disabling caching at the hierarchy level rather than on a per entity level for performance reasons. This means that @Cache (as noted) is valid on "a root entity [in an inheritance hierarchy] or a collection. The same is true when using javax.persistence.Cacheable.

      Please add comments detailing the permitted use of @Cache / @Cacheable and the implications with regard to cache structure/content somewhere in the section on caching in the User Guide.

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: