HHH-16731 fix validation of @Any mappings

This commit is contained in:
Gavin 2023-06-09 21:06:12 +02:00 committed by Gavin King
parent 5110fd4653
commit 43af98fa52
2 changed files with 2 additions and 2 deletions

View File

@ -589,7 +589,7 @@ public class AnnotatedColumn {
Map<String, Join> secondaryTables,
MetadataBuildingContext context) {
return buildColumnsOrFormulaFromAnnotation(
new jakarta.persistence.Column[] { column },
column==null ? null : new jakarta.persistence.Column[] { column },
formulaAnn,
// commentAnn,
nullability,

View File

@ -897,7 +897,7 @@ public class BasicValueBinder implements JdbcTypeIndicators {
.getDescriptor( javaClassAnn.value() );
}
return null;
throw new MappingException("Could not determine key type for '@Any' mapping (specify '@AnyKeyJavaType' or '@AnyKeyJavaClass')");
};
explicitJdbcTypeAccess = (typeConfiguration) -> {