Caching
By default the EclipseLink implementation of JPA enables a shared cache to cache objects read from the database and avoid repeated database access. If the database is changed directly by another application or server, the objects in the shared cache will be stale.
To disable this globally, use:
application.properties
eclipselink.cache.shared.default=false
For more information on this topic, see: