mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
15 lines
299 B
Java
15 lines
299 B
Java
package org.multitenant.partition;
|
|
|
|
import io.ebean.config.CurrentTenantProvider;
|
|
|
|
class CurrentTenant implements CurrentTenantProvider {
|
|
|
|
/**
|
|
* Return the current tenantId from the user context.
|
|
*/
|
|
@Override
|
|
public String currentId() {
|
|
return UserContext.get().getTenantId();
|
|
}
|
|
}
|