HHH-12684 - Hibernate fails when mapping one-to-many collections by non-primary key

Fix indentation issue due to multi-line formatting
This commit is contained in:
Vlad Mihalcea 2018-06-26 13:49:42 +03:00
parent e6ea4828db
commit ed34a25769
1 changed files with 1 additions and 2 deletions

View File

@ -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 &&