-
Notifications
You must be signed in to change notification settings - Fork 1
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
update deprecated hibernate properties: hibernate.temp.use_jdbc_metadata_defaults to hibernate.boot.allow_jdbc_metadata_access #30
Conversation
Hi @ghatdev Thanks for bringing this forward! I'm glad Hibernate added this as a built in feature :) Before moving on with merging this PR, I'd like to make sure that we still support older versions of Hibernate. From what I'm seeing in the Hibernate code, Hibernate still supports the old property, just produces a deprecation warning. Instead of removing the old property, can you add the new one so that both of them are set by default? Additionally,
|
Hi @dorav! Answers:
Yes. I see the hibernate supports old properties yet. I figured out atlas generates SQL file with gradle's schema task output so the output text needs to be clean. So I tried some changes to atlas.hcl: data "external_schema" "hibernate" {
program = [
"./gradlew",
"-q",
"schema",
"--rerun",
"--warning-mode", "none", // <- off for all warnings
"--properties", "schema-export.properties"
]
} But the error is not gone. I googled some solutions, and what I found was to configure the hibernate logging level. But I thought this was not a pretty way. |
I just tested it with the latest Hibernate version and it seems to be working, I'm attaching an example project. hibernate_65.zip @ghatdev Can you please share your gradle configuration or a minimal reproducible example? |
I also just noticed that you are passing |
Thanks for example project. I will do some tests and also send my configurations. |
Ok. I've tested. Example project you sent me is working without any deprecation warning. This is my example project: test3.zip |
I managed to reproduce it using your example. It looks like when using logback, the log isn't being silenced. I tried a few different ways, but couldn't silence it. For now you can work around this by adding this line to your
I'd appreciate it if you can also add it to the PR and I'll merge it (instead of removing the current setting, use both settings to keep backwards compatibility) |
I just added the previous settings as you told me with deprecation comment. When I tested it with my local environment, it worked pretty well :) |
This PR integrates the changes introduced here: #30
Glad to hear that :) I'm closing this PR since we merged the solution in here #32 |
cause:
hibernate provider fails with: executing statement: "HHH90000021: Encountered deprecated setting [hibernate.temp.use_jdbc_metadata_defaults], use [hibernate.boot.allow_jdbc_metadata_access] instead
fixed:
hibernate.temp.use_jdbc_metadata_defaults -> hibernate.boot.allow_jdbc_metadata_access