jmix
jmix copied to clipboard
Rework TenantPersistingListener
Problem:
io.jmix.multitenancy.core.impl.TenantPersistingListener
listens EntitySavingEvent
which is published by DataManager only.
It causes absence of tenantId in entities which is persisted by EntityManager. (see jmix-framework/jmix#976, jmix-framework/jmix#969)
Solution:
Rework Listener to use event which is published by EntityManager too.