hibernate/hibernate-orm · error · UnsupportedOperationException
{className} does not support GUIDs
Error message
{className} does not support GUIDs What it means
Error "{className} does not support GUIDs" thrown in hibernate/hibernate-orm.
Source
Thrown at hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java:2252
* table, primary key, foreign key, index information etc. via JDBC.
*
* @since 7.2
*/
public InformationExtractor getInformationExtractor(ExtractionContext extractionContext) {
return new InformationExtractorJdbcDatabaseMetaDataImpl( extractionContext );
}
// GUID support ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/**
* Get the command used to select a GUID from the database.
* <p>
* Optional operation.
*
* @return The appropriate command.
*/
public String getSelectGUIDString() {
throw new UnsupportedOperationException( getClass().getName() + " does not support GUIDs" );
}
/**
* Does this database have some sort of support for temporary tables?
*
* @return true by default, since most do
* @deprecated Use {@link #getLocalTemporaryTableStrategy()} and {@link #getGlobalTemporaryTableStrategy()} to check instead
*/
@Deprecated(forRemoval = true, since = "7.1")
public boolean supportsTemporaryTables() {
// Most databases do
return true;
}
/**
* Does this database support primary keys for temporary tables?
*
* @return true by default, since most doView on GitHub (pinned to fad1729dce)
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).
When it happens
Trigger: Triggered when the application calls a Hibernate dialect feature that the configured database dialect cannot provide: the dialect class does not support GUIDs.
Common situations: 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.
AI-assisted analysis of hibernate/hibernate-orm@fad1729dce (2026-08-22).
Data as JSON: /api/errors/1ef4dbdebf8cacba.
Report an issue: GitHub.