-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Add property spring.data.jdbc.dialect #39941
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
Conversation
The class valued property allows to configure a dialect, without relying on a database connection to determine it. See gh-39941
Thanks Jens! |
Sorry, after some discussion I had to revert the merge. First, because we don't really like having Second, this doesn't work in a native image without reflection hints. Sometimes they're unavoidable, but we'd like to explore if there's a way around that. |
I wonder if we can do something similar to our |
That sounds very reasonable. I'll give that a try. |
The class valued property allows to configure a dialect, without relying on a database connection to determine it.
eafe1a5
to
fb896a8
Compare
I used an enum utilising the standard enum conversion and left everything in Boot. Please have another look. |
Thanks for the update, @schauder. Did you consider adding the enum to Spring Data Relational? To me, that feels like a more natural home for it and it would make it easier to keep it in sync with the dialect implementations. |
Yes, I did consider moving it to Spring Data JDBC. That said: If you want it out of Boot, I don't have a problem with moving it into Spring Data. |
I don't feel strongly about this, just trying to reduce duplication overall. I wondered if the enum could also support the mapping that's currently done by If you think that's likely to be more trouble than it's worth, we can keep the enum in Boot. |
Then let us keep it in Boot. |
Thanks Jens! |
The class valued property allows to configure a dialect to use for Spring Data JDBC, without relying on a database connection to determine it.
This is useful especially for CDS.