From 2a65054d2bbcaaea2fef111f10836ef72b8da9ab Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Tue, 20 Mar 2012 21:17:16 +0000 Subject: [PATCH] HSEARCH-1049 Apply conventional to pull requests --- .../search/engine/spi/DocumentBuilderIndexedEntity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hibernate-search-engine/src/main/java/org/hibernate/search/engine/spi/DocumentBuilderIndexedEntity.java b/hibernate-search-engine/src/main/java/org/hibernate/search/engine/spi/DocumentBuilderIndexedEntity.java index e4ab9152410..345f961d6e5 100644 --- a/hibernate-search-engine/src/main/java/org/hibernate/search/engine/spi/DocumentBuilderIndexedEntity.java +++ b/hibernate-search-engine/src/main/java/org/hibernate/search/engine/spi/DocumentBuilderIndexedEntity.java @@ -243,8 +243,9 @@ protected void checkDocumentId(XProperty member, PropertiesMetadata propertiesMe NumericField numericFieldAnn = member.getAnnotation( NumericField.class ); if ( idAnnotation != null ) { String attributeName = getIdAttributeName( member, idAnnotation ); - if ( pathsContext != null ) + if ( pathsContext != null ) { pathsContext.markEncounteredPath( prefix + attributeName ); + } if ( isRoot ) { if ( explicitDocumentId ) { throw new SearchException( "More than one @DocumentId specified on entity " + getBeanClass().getName() );