Hi all,
Based on documentation I understood that we can create different data stores for different entities via @Store annotation.
How can I connect a data store to an user (or tenant) after login?
I want to have the same java application (jmix), but different data stores for different users (in my case - tenant). Is it possible?
No. It is simply not possible. Which is why we decided to go “one application instance, in a container, per ‘tenant’” for our application.
Theoretically it’s possible using for example Spring’s AbstractRoutingDatasource. But it’s out of scope of Jmix, we don’t provide an out-of-the-box solution for this.