You used to be able to specify the entities you wanted to cache in the persistence.xml, but all the documentation has now been changed to use the @Cache annotation.
Is the persistence.xml file capability still there? I cannot remember the syntax, since its not in the documentation anymore, but if you can still do this, I would like to know the syntax again.
Questions regarding Hibernate and/or JPA are best asked on the Hibernate forum: https://forum.hibernate.org/viewforum.php?f=1
Retrieving data ...