{"record":{"id":"3cd9708c286e7d27","repo":"hibernate/hibernate-orm","slug":"the-configured-time-zone-storage-type-native-is-no","errorCode":null,"errorMessage":"The configured time zone storage type NATIVE is not supported with the configured dialect","messagePattern":"The configured time zone storage type NATIVE is not supported with the configured dialect","errorType":"exception","errorClass":"HibernateException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataBuilderImpl.java","lineNumber":840,"sourceCode":"\t\t}\n\n\t\t@Override\n\t\t@Nonnull\n\t\tpublic TimeZoneSupport getTimeZoneSupport() {\n\t\t\ttry {\n\t\t\t\treturn getDialect().getTimeZoneSupport();\n\t\t\t}\n\t\t\tcatch ( ServiceException se ) {\n\t\t\t\treturn TimeZoneSupport.NONE;\n\t\t\t}\n\t\t}\n\n\t\t@Nonnull\n\t\tprivate TimeZoneStorageStrategy toTimeZoneStorageStrategy(@Nonnull TimeZoneSupport timeZoneSupport) {\n\t\t\treturn switch (defaultTimezoneStorage) {\n\t\t\t\tcase NATIVE -> {\n\t\t\t\t\tif ( timeZoneSupport != TimeZoneSupport.NATIVE ) {\n\t\t\t\t\t\tthrow new HibernateException( \"The configured time zone storage type NATIVE is not supported with the configured dialect\" );\n\t\t\t\t\t}\n\t\t\t\t\tyield TimeZoneStorageStrategy.NATIVE;\n\t\t\t\t}\n\t\t\t\tcase COLUMN -> TimeZoneStorageStrategy.COLUMN;\n\t\t\t\tcase NORMALIZE -> TimeZoneStorageStrategy.NORMALIZE;\n\t\t\t\tcase NORMALIZE_UTC -> TimeZoneStorageStrategy.NORMALIZE_UTC;\n\t\t\t\tcase AUTO -> switch (timeZoneSupport) {\n\t\t\t\t\t// if the db has native support for timezones, we use that, not a column\n\t\t\t\t\tcase NATIVE -> TimeZoneStorageStrategy.NATIVE;\n\t\t\t\t\t// otherwise we use a separate column\n\t\t\t\t\tcase NORMALIZE, NONE -> TimeZoneStorageStrategy.COLUMN;\n\t\t\t\t};\n\t\t\t\tcase DEFAULT -> switch (timeZoneSupport) {\n\t\t\t\t\t// if the db has native support for timezones, we use that, and don't normalize\n\t\t\t\t\tcase NATIVE -> TimeZoneStorageStrategy.NATIVE;\n\t\t\t\t\t// otherwise we normalize things to UTC\n\t\t\t\t\tcase NORMALIZE, NONE -> TimeZoneStorageStrategy.NORMALIZE_UTC;\n\t\t\t\t};","sourceCodeStart":822,"sourceCodeEnd":858,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataBuilderImpl.java#L822-L858","documentation":"Dialect capability check in toTimeZoneStorageStrategy: hibernate.timezone.default_storage is NATIVE, but the resolved dialect reports TimeZoneSupport other than NATIVE. The database cannot store TIMESTAMP WITH TIME ZONE natively, so the requested storage strategy is unusable with this dialect.","triggerScenarios":"hibernate.timezone.default_storage=NATIVE is used with a dialect that cannot store time zones natively.","commonSituations":"Enabling native time zone storage on a database/dialect without native timezone-capable column types.","solutions":["Change hibernate.timezone.default_storage away from NATIVE (use NORMALIZE, COLUMN, or DEFAULT) for this dialect/database.","Upgrade to a database/driver version whose dialect supports native timestamptz storage.","Check the dialect actually configured; a wrong dialect can falsely report missing support."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fad1729dce015f908198d57a8d80274a30f905a5","analyzedAt":"2026-08-22T04:13:57.527Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}