diff --git a/docs/src/main/asciidoc/hibernate-orm.adoc b/docs/src/main/asciidoc/hibernate-orm.adoc index fb61012dc90d1..e8e8347fa548e 100644 --- a/docs/src/main/asciidoc/hibernate-orm.adoc +++ b/docs/src/main/asciidoc/hibernate-orm.adoc @@ -981,7 +981,13 @@ public class CustomTenantResolver implements TenantResolver { return parts[1]; } - + + @Override + public boolean isRoot(String tenantId) { + // "global" tenant will have access to all partitions + return "global".equals(tenantId); + } + } ---- <1> Annotate the TenantResolver implementation with the `@PersistenceUnitExtension` qualifier