I want an in-time got objects from database. I decided not to permit caching of my entities. By using this configuration:
@Cache(
type = CacheType.NONE/*,
alwaysRefresh = true,
disableHits = true,
coordinationType = INVALIDATE_CHANGED_OBJECTS*/
)
But I have read the documentation here that:
NONE
public static final CacheType NONE
WARNING: Does not preserve object identity and does not cache objects.
Is that warning important, I may understand that JVM may misrelate objects to their real identities! Is there any suggestion for having the best configuration of not caching an object like playing with alwaysRefresh for example.