In chapter 12 of JPA Pro, Shared Cache section:
The shared cache is manipulated in JPA through a slim javax.persistence.Cache interface. An object that implements Cache can be obtained from the entity manager factory by invoking EntityManagerFactory.getCache()....
So, if the entity manager is not created by the entity manager, does it mean shared cache is not applicable ?
Farmers know to never drive a tractor near a honey locust tree. But a tiny ad is okay:
Programmatically Create PDF Using Free Spire.PDF with Java