28
28
import org .hibernate .SessionFactory ;
29
29
import org .hibernate .cfg .AvailableSettings ;
30
30
import org .hibernate .dialect .DB2Dialect ;
31
- import org .hibernate .dialect .DerbyDialect ;
32
31
import org .hibernate .dialect .DerbyTenSevenDialect ;
33
32
import org .hibernate .dialect .H2Dialect ;
34
33
import org .hibernate .dialect .HANAColumnStoreDialect ;
37
36
import org .hibernate .dialect .MySQL57Dialect ;
38
37
import org .hibernate .dialect .Oracle12cDialect ;
39
38
import org .hibernate .dialect .PostgreSQL95Dialect ;
40
- import org .hibernate .dialect .PostgreSQLDialect ;
41
39
import org .hibernate .dialect .SQLServer2012Dialect ;
42
40
import org .hibernate .dialect .SybaseDialect ;
43
41
import org .hibernate .resource .jdbc .spi .PhysicalConnectionHandlingMode ;
@@ -176,7 +174,7 @@ private Map<String, Object> buildJpaPropertyMap(boolean connectionReleaseOnClose
176
174
* @param database the target database
177
175
* @return the Hibernate database dialect class, or {@code null} if none found
178
176
*/
179
- @ SuppressWarnings ("deprecation" ) // for Derby/ PostgreSQLDialect on Hibernate 6.2
177
+ @ SuppressWarnings ("deprecation" ) // for DerbyDialect and PostgreSQLDialect on Hibernate 6.2
180
178
@ Nullable
181
179
protected Class <?> determineDatabaseDialectClass (Database database ) {
182
180
if (oldDialectsPresent ) { // Hibernate <6.2
@@ -198,13 +196,13 @@ protected Class<?> determineDatabaseDialectClass(Database database) {
198
196
else { // Hibernate 6.2 aligned
199
197
return switch (database ) {
200
198
case DB2 -> DB2Dialect .class ;
201
- case DERBY -> DerbyDialect .class ;
199
+ case DERBY -> org . hibernate . dialect . DerbyDialect .class ;
202
200
case H2 -> H2Dialect .class ;
203
201
case HANA -> HANAColumnStoreDialect .class ;
204
202
case HSQL -> HSQLDialect .class ;
205
203
case MYSQL -> MySQL57Dialect .class ;
206
204
case ORACLE -> Oracle12cDialect .class ;
207
- case POSTGRESQL -> PostgreSQLDialect .class ;
205
+ case POSTGRESQL -> org . hibernate . dialect . PostgreSQLDialect .class ;
208
206
case SQL_SERVER -> SQLServer2012Dialect .class ;
209
207
case SYBASE -> SybaseDialect .class ;
210
208
default -> null ;
0 commit comments