About sharedCache

manual

Shared (L2) Entity Cache

Explains how to set and use the EntityManagerFactory's shared cache (L2 / level 2) in JPA 2.... <property name = "javax.persistence.sharedCache.mode" value = "ALL" /> </properties > ... > The  javax.persistence.sharedCache.mode property can be set to one of the following values: ...