Skip to content

Commit 37c4db8

Browse files
dreab8sebersole
authored andcommitted
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
1 parent 8b99707 commit 37c4db8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

hibernate-core/src/main/java/org/hibernate/boot/model/internal/CollectionBinder.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2258,12 +2258,12 @@ private void handleElementCollection(TypeDetails elementType, String hqlOrderBy)
22582258
// 'holder' is the CollectionPropertyHolder.
22592259
// 'property' is the collection XProperty
22602260

2261-
final ClassDetails elementClass = isPrimitive( elementType.getName() )
2261+
final boolean isPrimitive = isPrimitive( elementType.getName() );
2262+
final ClassDetails elementClass = isPrimitive
22622263
? null
22632264
: elementType.determineRawClass();
2264-
final AnnotatedClassType classType = annotatedElementType( isEmbedded, property, elementClass );
2265-
final boolean primitive = classType == NONE;
2266-
if ( !primitive ) {
2265+
final AnnotatedClassType classType = annotatedElementType( isEmbedded, isPrimitive, property, elementClass );
2266+
if ( !isPrimitive ) {
22672267
propertyHolder.startingProperty( property );
22682268
}
22692269

@@ -2387,9 +2387,10 @@ static AccessType accessType(MemberDetails property, PersistentClass owner) {
23872387

23882388
private AnnotatedClassType annotatedElementType(
23892389
boolean isEmbedded,
2390+
boolean isPrimitive,
23902391
MemberDetails property,
23912392
ClassDetails elementClass) {
2392-
if ( isPrimitive( elementClass.getName() ) ) {
2393+
if ( isPrimitive ) {
23932394
return NONE;
23942395
}
23952396
else {

0 commit comments

Comments
 (0)