Skip to content

Commit ed09a7b

Browse files
committed
fixup! HHH-18384 Preserving order of @id annotated elements while adding to list before other elements
1 parent c5cad97 commit ed09a7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ static int addElementsOfClass(
565565
PropertyContainer propertyContainer,
566566
MetadataBuildingContext context, int idPropertyCounter) {
567567
for ( XProperty property : propertyContainer.propertyIterator() ) {
568-
idPropertyCounter += addProperty( propertyContainer, property, elements, context, idPropertyCounter );
568+
idPropertyCounter = addProperty( propertyContainer, property, elements, context, idPropertyCounter );
569569
}
570570
return idPropertyCounter;
571571
}

0 commit comments

Comments
 (0)