Skip to content

HHH-19559, HHH-19580 schema-based multitenancy #10424

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

Merged
merged 14 commits into from
Jun 28, 2025

Conversation

gavinking
Copy link
Member

@gavinking gavinking commented Jun 27, 2025

Rebase of #10372

[Please describe here what your change is about]


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


https://hibernate.atlassian.net/browse/HHH-19559
https://hibernate.atlassian.net/browse/HHH-19580

@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Jun 27, 2025

Thanks for your pull request!

This pull request appears to follow the contribution rules.

› This message was automatically generated.

@gavinking gavinking changed the title HHH-19559 schema-based multitenancy HHH-19559, HHH-19580 schema-based multitenancy Jun 28, 2025
@gavinking
Copy link
Member Author

I believe this is ready to merge now. Of course we can still make further adjustments.

- skip test on SQL Sever + Sybase due to incomplete JDBC implementation
- also skip on Oracle and MySQL since we can't create schemas
- test should not have a @TenantID
@gavinking gavinking merged commit be1d75e into hibernate:main Jun 28, 2025
26 checks passed
* @since 7.1
*/
@Incubating
SchemaManager forSchema(String schemaName);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would forTenant make sense, maybe?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe. Why not?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would have to know how to use the MultiTenantConnectionProvider though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants