-
Notifications
You must be signed in to change notification settings - Fork 38.4k
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
Doc: hibernate.dialect_resolvers vs HibernateJpaVendorAdapter.setDatabase [SPR-16428] #20974
Comments
Giovanni Lovato commented What’s the purpose of the |
Juergen Hoeller commented So you are setting the "database" property on |
Giovanni Lovato commented I'm not setting any other property than spring:
datasource:
jndi-name: java:/datasources/docker/postgres/default
jpa:
open-in-view: false
show-sql: true
generate-ddl: true
properties:
hibernate:
dialect_resolvers: it.axians.oss.data.jpa.dialect.ExtendedDialectResolver The workaround I'm using now is to specify also |
Juergen Hoeller commented It turns out that Spring Boot is setting the database by default: https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#howto-configure-jpa-properties. It looks like you could also set From a Spring Framework perspective, this is essentially a documentation issue for anybody configuring |
Giovanni Lovato commented That's okay for me. Thank you for the explanation! |
Juergen Hoeller commented I've added corresponding notes to the |
Giovanni Lovato opened SPR-16428 and commented
Hibernate property
hibernate.dialect_resolvers
let specify custom Dialect resolvers if nohibernate.dialect
is set. I cannot get the property to work with Spring Data JPA and debugging I've found what I guess is the issue, i.e.HibernateJpaVendorAdapter
at Line 130 always sets the dialect property and doing so Hibernate will not take into account thedialect_resolvers
property.Affects: 4.3.14, 5.0.3
Issue Links:
Referenced from: commits e1fa65a, f187ca6
Backported to: 4.3.15
The text was updated successfully, but these errors were encountered: