Skip to content

Commit

Permalink
HHH-17504 - Ongoing JPA 32 work HHH-17350 - Work on hibernate-models,…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
dreab8 authored and sebersole committed Mar 28, 2024
1 parent 4020702 commit febf7f2
Showing 1 changed file with 6 additions and 5 deletions.
Expand Up @@ -2259,12 +2259,12 @@ private void handleElementCollection(TypeDetails elementType, String hqlOrderBy)
// '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 );
}

Expand Down Expand Up @@ -2388,9 +2388,10 @@ static AccessType accessType(MemberDetails property, PersistentClass owner) {

private AnnotatedClassType annotatedElementType(
boolean isEmbedded,
boolean isPrimitive,
MemberDetails property,
ClassDetails elementClass) {
if ( isPrimitive( elementClass.getName() ) ) {
if ( isPrimitive ) {
return NONE;
}
else {
Expand Down

0 comments on commit febf7f2

Please sign in to comment.