We're updating the issue view to help you get more done. 

Document supported use/implications of @Cache / @Cacheable

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.

Environment

None

Status

Assignee

Vlad Mihalcea

Reporter

Stephen Fikes

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.1.2
5.2.2
5.0.9
4.2.21

Priority

Minor