From ed34a25769513d4600c85836c80c64af89280746 Mon Sep 17 00:00:00 2001 From: Vlad Mihalcea Date: Tue, 26 Jun 2018 13:49:42 +0300 Subject: [PATCH] HHH-12684 - Hibernate fails when mapping one-to-many collections by non-primary key Fix indentation issue due to multi-line formatting --- .../source/internal/hbm/AbstractPluralAttributeSourceImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/AbstractPluralAttributeSourceImpl.java b/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/AbstractPluralAttributeSourceImpl.java index 850464343d..88905125d6 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/AbstractPluralAttributeSourceImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/AbstractPluralAttributeSourceImpl.java @@ -78,8 +78,7 @@ public abstract class AbstractPluralAttributeSourceImpl if ( childClass != null ) { jaxbHbmManyToOneTypeOptional = mappingDocument.getDocumentRoot().getClazz() .stream() - .filter( (JaxbHbmRootEntityType entityType) -> - childClass.equals( entityType.getName() ) ) + .filter( (JaxbHbmRootEntityType entityType) -> childClass.equals( entityType.getName() ) ) .flatMap( jaxbHbmRootEntityType -> jaxbHbmRootEntityType.getAttributes().stream() ) .filter( attribute -> attribute instanceof JaxbHbmManyToOneType &&