About ENABLE_SELECTIVE

manual

Shared (L2) Entity Cache

Explains how to set and use the EntityManagerFactory's shared cache (L2 / level 2) in JPA 2.... NONE - cache is disabled. ENABLE_SELECTIVE - cache is disabled except for selected entity classes (see ... Entity Class Cache Settings The  ENABLE_SELECTIVE mode indicates that the cache is disabled for all the entity ...

 
api-jpa

SharedCacheMode.ENABLE_SELECTIVE

Caching is enabled for all entities for Cacheable(true) is specified.(Enum Constant of javax.persistence.SharedCacheMode)

 
api-jpa

javax.persistence.Cacheable

Specifies whether an entity should be cached if caching is enabled when the value of the persistence.xml caching element is ENABLE_SELECTIVE or DISABLE_SELECTIVE.(Annotation of JPA)

 
api-jpa

javax.persistence.SharedCacheMode

Specifies how the provider must use a second-level cache for the persistence unit.(Enum of JPA)

 
forum_thread

Entity is not related to ObjectDB, but i get exception from ObjectDB

Here is the description of the problem we are facing:
We have an entity DialogActionNew which previously was located in ObjectDB and recently has been transferred to PostreSQL. We are using ORM Hibernate
When getting this entity from PostgreSQL with the key EntityManager.find(id), we receive another entity - DialogNew, which has an exception: ... = "javax.persistence.sharedCache.mode" value = "ENABLE_SELECTIVE" /> <property name = ...