In a multi tenant setup, how to handle Integer type tenant ID in hibernate using discriminator approach? #50511
Unanswered
Vivekanandan-gm
asked this question in
Q&A
Replies: 2 comments
-
|
/cc @gsmet (hibernate-orm) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
From this issue #36831, I could still see that there is no support for generic types. Is there any work around? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
From the tutorials it is clear that we need to implement the
TenantResolverclass to handle multitenancy using the discriminator approach. However the resolved tenant ID is of typeString. The type of tenant ID in my application and DB isInteger. Since the types don't match, I get this error when I try to run the code.However the class
CurrentTenantIdentifierResolver<T>provided by hibernate seems to support returning Integer based tenant ID. Are there any ways to handle such scenarios in Quarkus?Beta Was this translation helpful? Give feedback.
All reactions