I have one db (MySql) and several schemas (schema_a,schema_b,schema_c). The schemas have same tables, identical.
The current schema depends on current user (session) data. For example, current user is from company A, then current schema is "schema_a". Accordingly, EmployeeRepository.findAll() method fetches data from schema "schema_a".
In hibernate with spring boot 2, is it possible dynamically change current entityManager? If yes, how?
Help, please