-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Hibernate ORM multitenancy fixes #40680
Conversation
This is undocumented behavior and I have no idea what the point would be.
…bean for discriminator multi-tenancy The only consumer of this bean is HibernateMultiTenantConnectionProvider and that consumer is not enabled with discriminator multi-tenancy. See /~https://github.com/quarkusio/quarkus/blob/78952bcd4193042c2f569c3cf3b13d95be618b9a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootMetadataBuilder.java#L253-L263
There are no tests involving this configuration property. `quarkus.hibernate-orm.datasource` serves the exact same purpose and is more standardized and better handled (e.g. in Dev UI). See quarkusio#18564
/cc @gsmet (hibernate-orm) |
Status for workflow
|
🙈 The PR is closed and the preview is expired. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me.
The datasource copying is indeed very weird. I don't see why we would do that but I also don't why it would have been done in the first place...
Status for workflow
|
Fixes #18564 and then some.
See commits for details:
SCHEMA
multi-tenancyThis is undocumented behavior and I have no idea what the point would be.
DataSourceTenantConnectionResolver
bean for discriminator multi-tenancyThe only consumer of this bean is
HibernateMultiTenantConnectionProvider
and that consumer is not enabled with discriminator multi-tenancy.See
quarkus/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootMetadataBuilder.java
Lines 253 to 263 in 78952bc
quarkus.hibernate-orm.multitenant-schema-datasource
There are no tests involving this configuration property.
quarkus.hibernate-orm.datasource
serves the exact same purpose and is more standardized and better handled (e.g. in Dev UI).