Skip to content

Migrate to Datasource instead of DriverManager #1533

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

Open
kcinay055679 opened this issue May 5, 2025 · 0 comments
Open

Migrate to Datasource instead of DriverManager #1533

kcinay055679 opened this issue May 5, 2025 · 0 comments
Assignees
Labels
request New feature request

Comments

@kcinay055679
Copy link
Collaborator

Right now we use DriverManager as a way to get the DB connection, but it is recommended to use Datasource.
More information:
https://stackoverflow.com/questions/15198319/why-do-we-use-a-datasource-instead-of-a-drivermanager

Describe the solution you'd like
I would like to use Datasouroce since it is the best practice to interact with the db

This guide should help:
https://www.baeldung.com/multitenancy-with-spring-data-jpa#bd-dynamic-datasource-routing
But keep in mind this guide is written for Database per Tenant: while we use schema per tenant therefore we have to make a few adjustments

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

No branches or pull requests

2 participants