{"record":{"id":"1ef4dbdebf8cacba","repo":"hibernate/hibernate-orm","slug":"classname-does-not-support-guids","errorCode":null,"errorMessage":"{className} does not support GUIDs","messagePattern":"(.+?) does not support GUIDs","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java","lineNumber":2252,"sourceCode":"\t * table, primary key, foreign key, index information etc. via JDBC.\n\t *\n\t * @since 7.2\n\t */\n\tpublic InformationExtractor getInformationExtractor(ExtractionContext extractionContext) {\n\t\treturn new InformationExtractorJdbcDatabaseMetaDataImpl( extractionContext );\n\t}\n\n\t// GUID support ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n\t/**\n\t * Get the command used to select a GUID from the database.\n\t * <p>\n\t * Optional operation.\n\t *\n\t * @return The appropriate command.\n\t */\n\tpublic String getSelectGUIDString() {\n\t\tthrow new UnsupportedOperationException( getClass().getName() + \" does not support GUIDs\" );\n\t}\n\n\t/**\n\t * Does this database have some sort of support for temporary tables?\n\t *\n\t * @return true by default, since most do\n\t * @deprecated Use {@link #getLocalTemporaryTableStrategy()} and {@link #getGlobalTemporaryTableStrategy()} to check instead\n\t */\n\t@Deprecated(forRemoval = true, since = \"7.1\")\n\tpublic boolean supportsTemporaryTables() {\n\t\t// Most databases do\n\t\treturn true;\n\t}\n\n\t/**\n\t * Does this database support primary keys for temporary tables?\n\t *\n\t * @return true by default, since most do","sourceCodeStart":2234,"sourceCodeEnd":2270,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java#L2234-L2270","documentation":"Error \"{className} does not support GUIDs\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Triggered when the application calls a Hibernate dialect feature that the configured database dialect cannot provide: the dialect class does not support GUIDs.","commonSituations":"Common when running against a database whose dialect lacks this capability, when a mapping or HQL/Criteria query requests unsupported functionality, or when the wrong dialect is configured for the database in use. Error: the dialect class does not support GUIDs.","solutions":["Map the property as a binary(16) or varchar(36) column instead of a GUID type.","Use a dialect that supports native UUID types (e.g. PostgreSQLDialect)."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fad1729dce015f908198d57a8d80274a30f905a5","analyzedAt":"2026-08-22T04:13:57.527Z","schemaVersion":2},"datasetVersion":"2026-08-22T09:17:25.309Z"}