Use eclipselink.multitenant.shared-emf
to specify if multitenant entities will be used within a shared entity manager factory.
Values
Table 5-67 describes this persistence property's values.
Table 5-67 Valid Values for multitenant.tenants-share-emf
Value | Description |
---|---|
|
(Default) |
|
You must provide a unique session name. |
Usage
When setting it to false, users are required to provide a unique session name. .
Examples
Example 5-64 Using multitenant.tenants-share-emf in persistence.xml
<property name="eclipselink_multitenant_tenants_share_emf" value="true" />
See Also
For more information, see:
Multitenant examples:
http://wiki.eclipse.org/EclipseLink/Examples/JPA/Multitenant
"Using Multitenancy" in Solutions Guide for EclispeLink