-
Notifications
You must be signed in to change notification settings - Fork 3k
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
PropertyBeanSetter fails to set DataSource#url for some databases #45
Comments
Two things. Because the PropertyBeanSetter is purely reflection based, |
Yep, exactly what I had in mind! And you're correct -- my workaround sets URL as a property in hibernate-hikaricp. This may only be an issue for the specific versions of H2, but I haven't audited any other DBs to see if that's the case anywhere else. Thanks! |
I've already committed this change and a test case this morning (well, morning here in Tokyo). |
Great, thanks for the quick response! |
Slightly older versions of H2 provide JdbcDataSource#setURL, but not JdbcDataSource#setUrl. That was corrected in a recent revision, however it will cause issues for many Hibernate users. Could PropertyBeanSetter#setTargetFromProperties be improved to handle crappy JDBC impls? ;)
I'm including a workaround in hibernate-hikaricp, for now.
Thanks!
The text was updated successfully, but these errors were encountered: