We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb630fb commit bb49a26Copy full SHA for bb49a26
hibernate-core/src/main/java/org/hibernate/boot/model/internal/AnnotatedDiscriminatorColumn.java
@@ -94,6 +94,10 @@ private static void setDiscriminatorType(
94
case CHAR:
95
column.setDiscriminatorTypeName( "character" );
96
column.setImplicit( false );
97
+ if ( discriminatorColumn != null && discriminatorColumn.length() != 1 && discriminatorColumn.length() != 31 ) {
98
+ throw new AssertionFailure( "Length for CHAR discriminator should always be 1" );
99
+ }
100
+ column.setLength( 1L );
101
break;
102
case INTEGER:
103
column.setDiscriminatorTypeName( "integer" );
0 commit comments