HHH-16551 - Removed declared discriminator column length check

This commit is contained in:
Cedomir Igaly 2023-05-08 19:41:31 +02:00 committed by Christian Beikov
parent 8fceeaf542
commit 0a79ce8c47
1 changed files with 0 additions and 3 deletions

View File

@ -94,9 +94,6 @@ public class AnnotatedDiscriminatorColumn extends AnnotatedColumn {
case CHAR:
column.setDiscriminatorTypeName( "character" );
column.setImplicit( false );
if ( discriminatorColumn != null && discriminatorColumn.length() != 1 && discriminatorColumn.length() != 31 ) {
throw new AssertionFailure( "Length for CHAR discriminator should always be 1" );
}
column.setLength( 1L );
break;
case INTEGER: