hibernate/hibernate-orm · error · IllegalArgumentException
Unsupported generation type:${generationType}
Error message
Unsupported generation type:${generationType} What it means
Error "Unsupported generation type:${generationType}" thrown in hibernate/hibernate-orm.
Source
Thrown at hibernate-core/src/main/java/org/hibernate/boot/model/internal/GeneratorStrategies.java:66
case TABLE:
return org.hibernate.id.enhanced.TableGenerator.class.getName();
case UUID:
return UUIDGenerator.class.getName();
case AUTO:
if ( UUID.class.isAssignableFrom( type.determineRawClass().toJavaClass() ) ) {
return UUIDGenerator.class.getName();
}
else if ( "increment".equalsIgnoreCase( name ) ) {
// special case for @GeneratedValue(name="increment")
// for some reason we consider there to be an implicit
// generator named 'increment' (doesn't seem very useful)
return IncrementGenerator.class.getName();
}
else {
return SequenceStyleGenerator.class.getName();
}
default:
throw new IllegalArgumentException( "Unsupported generation type:" + generationType );
}
}
/**
* Interpret an "old" generator strategy name as a {@link Generator} class.
*/
public static Class<? extends Generator> generatorClass(String strategy, SimpleValue idValue) {
if ( "native".equals(strategy) ) {
strategy =
idValue.getMetadata().getDatabase().getDialect()
.getNativeIdentifierGeneratorStrategy();
}
switch (strategy) {
case "assigned":
return org.hibernate.id.Assigned.class;
case "enhanced-sequence":
case "sequence":
return SequenceStyleGenerator.class;View on GitHub (pinned to fad1729dce)
Solutions
- Use a supported GenerationType (AUTO, IDENTITY, SEQUENCE, TABLE, UUID).
When it happens
Trigger: An identifier/value generator declaration is inconsistent with the referenced generator or the annotated element.
Common situations: @GeneratedValue pointing at a generator of the wrong kind (SEQUENCE vs TABLE), a missing named generator, too many generator annotations, or an unsupported generation strategy for @CollectionId.
AI-assisted analysis of hibernate/hibernate-orm@fad1729dce (2026-08-22).
Data as JSON: /api/errors/5f79f8b94677a542.
Report an issue: GitHub.