You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I modify the return type of the TenantResolver methods getDefaultTenantId and resolveTenantId, as they currently return only String types? My entity is configured to use UUID for @TenantID filtering. Is there a workaround to pass UUID instead of String for the @TenantID filter?
`public interface TenantResolver {
/**
* Returns the identifier of the default tenant.
*
* @return Default tenant.A non-{@literal null} value is required.
*/
String getDefaultTenantId();
/**
* Returns the current tenant identifier.
*
* @return the tenant identifier. This value will be used to select the proper configuration at runtime. A
* non-{@literal null} value is required.
*/
String resolveTenantId();
/**
* Does the given tenant id represent a "root" tenant with access to all partitions?
*
* @param tenantId a tenant id produced by {@link #resolveTenantId()}
*
* @return true is this is root tenant
*/
default boolean isRoot(String tenantId) {
return false;
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How can I modify the return type of the TenantResolver methods getDefaultTenantId and resolveTenantId, as they currently return only String types? My entity is configured to use UUID for @TenantID filtering. Is there a workaround to pass UUID instead of String for the @TenantID filter?
`public interface TenantResolver {
}`
Beta Was this translation helpful? Give feedback.
All reactions