In this example,
PACKAGE is the name of the entity package and
ENTITY_NAME is the name of your entity. The
cache usage values correspond to the cache usage modes, described above. Refer
to the
Hibernate documentation for further information.

To set the mode using annotations, your class definition should
look something like this: