HHH-16731 fix validation of @Any mappings
This commit is contained in:
parent
5110fd4653
commit
43af98fa52
|
@ -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,
|
||||
|
|
|
@ -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) -> {
|
||||
|
|
Loading…
Reference in New Issue