Skip to content

Commit

Permalink
Document how to access all partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
seepine committed Aug 25, 2023
1 parent 318148c commit 5e2e179
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/src/main/asciidoc/hibernate-orm.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e2e179

Please sign in to comment.