Currently there is a requirement where we need to create new schema based on the tenantId during runtime. We followed the above post but couldn’t figure it out the way to do it.
This approach requires the implementation of a class that implements the Java interface TenantInfoHolder. The method getCurrentTenantId() must return the tenant ID for the current operation.