From 0a79ce8c472408641d02b704defb724ceb1b9258 Mon Sep 17 00:00:00 2001 From: Cedomir Igaly Date: Mon, 8 May 2023 19:41:31 +0200 Subject: [PATCH] HHH-16551 - Removed declared discriminator column length check --- .../boot/model/internal/AnnotatedDiscriminatorColumn.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/boot/model/internal/AnnotatedDiscriminatorColumn.java b/hibernate-core/src/main/java/org/hibernate/boot/model/internal/AnnotatedDiscriminatorColumn.java index 86b061cb72..2725f4273e 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/model/internal/AnnotatedDiscriminatorColumn.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/model/internal/AnnotatedDiscriminatorColumn.java @@ -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: