jmix icon indicating copy to clipboard operation
jmix copied to clipboard

Rework TenantPersistingListener

Open dtaimanov opened this issue 2 years ago • 0 comments

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.

dtaimanov avatar Oct 05 '22 10:10 dtaimanov