Closed
Description
Giovanni Lovato opened SPR-16428 and commented
Hibernate property hibernate.dialect_resolvers
let specify custom Dialect resolvers if no hibernate.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 the dialect_resolvers
property.
if (getDatabasePlatform() != null) {
jpaProperties.put(AvailableSettings.DIALECT, getDatabasePlatform());
}
else {
Class<?> databaseDialectClass = determineDatabaseDialectClass(getDatabase());
if (databaseDialectClass != null) {
jpaProperties.put(AvailableSettings.DIALECT, databaseDialectClass.getName());
}
}
Affects: 4.3.14, 5.0.3
Issue Links:
- Deprecate outdated HibernateTemplate operations in favor of lambdas [SPR-16426] #20972 Deprecate outdated HibernateTemplate operations in favor of lambdas
Referenced from: commits e1fa65a, f187ca6
Backported to: 4.3.15