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:
Referenced from: commits e1fa65a, f187ca6
Backported to: 4.3.15
Giovanni Lovato opened SPR-16428 and commented
Hibernate property
hibernate.dialect_resolverslet specify custom Dialect resolvers if nohibernate.dialectis 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.HibernateJpaVendorAdapterat Line 130 always sets the dialect property and doing so Hibernate will not take into account thedialect_resolversproperty.Affects: 4.3.14, 5.0.3
Issue Links:
Referenced from: commits e1fa65a, f187ca6
Backported to: 4.3.15