File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
hibernate-core/src/main/java/org/hibernate/type/descriptor/java Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1212import java .util .Collection ;
1313
1414import org .hibernate .HibernateException ;
15+ import org .hibernate .MappingException ;
1516import org .hibernate .SharedSessionContract ;
1617import org .hibernate .dialect .Dialect ;
1718import org .hibernate .engine .jdbc .BinaryStream ;
@@ -72,7 +73,7 @@ public BasicType<?> resolveType(
7273 || elementJavaTypeClass != null && elementJavaTypeClass .isArray ()
7374 && elementJavaTypeClass != byte [].class ) {
7475 // No support for nested arrays, except for byte[][]
75- return null ;
76+ throw new MappingException ( "Nested arrays (with the exception of byte[][]) are not supported" ) ;
7677 }
7778 final ArrayJavaType <T > arrayJavaType ;
7879 if ( getElementJavaType () == elementType .getJavaTypeDescriptor () ) {
You can’t perform that action at this time.
0 commit comments