Java Persistence API (JPA) Extensions Reference for EclipseLink, Release 2.4
  Go To Table Of Contents
 Search
 PDFComments
Comments


multitenant.tenants-share-cache

Use eclipselink.multitenant.tenants-share-cache to specify if multitenant entities will share the L2 cache.


Values

Table 5-66 describes this persistence property's values.

Table 5-66 Valid Values for multitenant.tenants-share-cache

Value Description

true

Multitenant entities will use an protected cache.

false

(Default) Multitenant entities will use an isolated cache.



Usage


WARNING:

When this setting is false, queries that use the cache may return data from other tenants when using the PROTECTED setting.



Examples

Example 5-62 Using multitenant.tenants-share-cache in persistence.xml

<property name="eclipselink.multitenant.tenants-share-cache" value="true" />

Example 5-63 Using multitenant.tenants-share-cache in a Property Map



See Also

For more information, see: