Re: Multi Tenancy : find fails with a NPE on DN 2.5.6


stephane
 

Unable to set the multitenant properties (on current source):

props.put(PropertyNames.PROPERTY_MAPPING_TENANT_READ_IDS, tenant);
props.put(PropertyNames.PROPERTY_MAPPING_TENANT_ID, tenant);
final EntityManager entityManager = emf.createEntityManager(props);
Has no effect.

entityManager
.setProperty(PropertyNames.PROPERTY_MAPPING_TENANT_READ_IDS, tenant);
Raise this log
WARN   Attempt to set property "datanucleus.TenantReadIds" on PM/EM yet this is not supported. Ignored

I tried to set these properties in the EMF properties without more success.


Any suggestions ?

--
Stephane

Join main@datanucleus.groups.io to automatically receive all group messages.