Date
1 - 5 of 5
Multi Tenancy : find fails with a NPE on DN 2.5.6
Miss read the doc. TenantProvider need to be an object in the EntityManager setting. Map map = new HashMap(); So far TenantProvider works with JPA, remains to understand why TenantReadIds on the EntityManger doesn't... |
|
passignat@...
Using properties.setProperty(PropertyNames.PROPERTY_MAPPING_TENANT_PROVIDER,MyTenantProvider.class.getName()) raises an error
WARN Error accessing property datanucleus.TenantProvider; should be an instance of MultiTenancyProvider but isnt! Ignored -- Stephane |
|
passignat@...
Unable to set the multitenant properties (on current source):
props.put(PropertyNames.PROPERTY_MAPPING_TENANT_READ_IDS, tenant); Has no effect. I tried to set these properties in the EMF properties without more success. Any suggestions ? Stephane |
|
On Sat, Feb 27, 2021 at 01:22 AM, <passignat@...> wrote:
multiTenancyProvider Case: https://github.com/datanucleus/datanucleus-core/issues/365 |
|
passignat@...
I'm trying to use datanucleus.TenantReadIds at the EntityManager level, setting this property entityManager.setProperty(PropertyNames.PROPERTY_MAPPING_TENANT_READ_IDS, tenant);
As it doesn't seems applied, I look at PersistenceNucleusContextImpl:getMultiTenancyReadIds public String[] getMultiTenancyReadIds(ExecutionContext ec) Is it possible to read the PROPERTY_MAPPING_TENANT_READ_IDS from the EntityManger settings before doing the fallback ? thanks, -- Stephane |
|