HHH-17504 - Ongoing JPA 32 work HHH-17350 - Work on hibernate-models, XSD and JAXB HHH-16114 - Improve boot metamodel binding HHH-15996 - Develop an abstraction for Annotation in annotation processing HHH-16012 - Develop an abstraction for domain model Class refs HHH-15997 - Support for dynamic models in orm.xml HHH-15698 - Support for entity-name in mapping.xsd

This commit is contained in:
Andrea Boriero 2024-03-13 10:21:41 +01:00 committed by Steve Ebersole
parent 875be0f3fa
commit ebe7e69173
1 changed files with 6 additions and 5 deletions

View File

@ -2259,12 +2259,12 @@ public abstract class CollectionBinder {
// 'holder' is the CollectionPropertyHolder.
// 'property' is the collection XProperty
final ClassDetails elementClass = isPrimitive( elementType.getName() )
final boolean isPrimitive = isPrimitive( elementType.getName() );
final ClassDetails elementClass = isPrimitive
? null
: elementType.determineRawClass();
final AnnotatedClassType classType = annotatedElementType( isEmbedded, property, elementClass );
final boolean primitive = classType == NONE;
if ( !primitive ) {
final AnnotatedClassType classType = annotatedElementType( isEmbedded, isPrimitive, property, elementClass );
if ( !isPrimitive ) {
propertyHolder.startingProperty( property );
}
@ -2388,9 +2388,10 @@ public abstract class CollectionBinder {
private AnnotatedClassType annotatedElementType(
boolean isEmbedded,
boolean isPrimitive,
MemberDetails property,
ClassDetails elementClass) {
if ( isPrimitive( elementClass.getName() ) ) {
if ( isPrimitive ) {
return NONE;
}
else {