Buggy code:
public interface PlaceRepository extends PagingAndSortingRepository < Place , String > { public Place getByLinksObjectAndLinksPredicate ( String object , String predicate ) { } @ Query ( value = "{<seq2seq4repair_space>'_id':<seq2seq4repair_space>?0<seq2seq4repair_space>}" , fields = "{<seq2seq4repair_space>'prefLocation.shape':<seq2seq4repair_space>0<seq2seq4repair_space>}" ) public Place findWithoutPolygon ( String id ) { } public List < Place > findByPrefNameTitle ( String name ) { } public List < Place > findByNamesTitle ( String name ) { } public List < Place > findByPrefNameTitleAndTypes ( String name , String type ) { } public Place findByIds ( Identifier id ) { } public Place findByIdsAndTypes ( Identifier id , String type ) { } public List < Place > findByParent ( String parentId ) { } public List < Place > findByParentAndDeletedIsFalse ( String parentId ) { } public List < Place > findByIdIn ( Set < String > ids ) { } public List < Place > findByParentIsNullAndDeletedIsFalse ( Sort sort ) { } public List < Place > findByTypesAndDeletedIsFalse ( String string , Sort sort ) { } public List < Place > findByPrefLocationIsNull ( ) { } public List < Place > findByPrefLocationIsNullAndIdsContext ( String context ) { } public List < Place > findByPrefLocationIsNotNull ( ) { } public List < Place > findByPrefLocationIsNotNull ( Pageable pageable ) { } public List < Place > findByRelatedPlaces ( String id ) { } public List < Place > findByNamesTitleAndTypes ( String title , String string ) { } public List < Place > findByNeedsReview ( boolean b ) { } public Place findByIdsAndTypesAndNeedsReviewAndIdNot ( Identifier identifier , String type , boolean needsReview , String id ) { } public List < Place > findByPrefNameTitleAndTypesAndNeedsReviewAndIdNot ( String title , String string , boolean b , String id ) { } public List < Place > findByPrefNameTitleAndNeedsReviewAndIdNot ( String title , boolean b , String string ) { } public List < Place > findByNamesTitleAndNeedsReviewAndIdNot ( String title , boolean b , String id ) { } public Place findByIdsAndNeedsReviewAndIdNot ( Identifier id , boolean b , String id2 ) { } public List < Place > findByIdsContext ( String context ) { } public List < Place > findByProvenanceNotAndIdsContext ( String string , String string2 ) { } public List < Place > findByRecordGroupId ( String recordGroupId ) { } <START_BUG> @ Query ( value = "{<seq2seq4repair_space>'children':<seq2seq4repair_space>{<seq2seq4repair_space>$gt:<seq2seq4repair_space>?0<seq2seq4repair_space>},<seq2seq4repair_space>'prefLocation':<seq2seq4repair_space>{<seq2seq4repair_space>$exists:<seq2seq4repair_space>true<seq2seq4repair_space>}<seq2seq4repair_space>}" , fields = "{<seq2seq4repair_space>'prefLocation.shape':<seq2seq4repair_space>0<seq2seq4repair_space>}" ) <END_BUG> public List < Place > findHeatmapPlaces ( int i , PageRequest pageRequest ) ; }

Fix:
@ Query ( value = "{<seq2seq4repair_space>'children':<seq2seq4repair_space>{<seq2seq4repair_space>$gt:<seq2seq4repair_space>?0<seq2seq4repair_space>},<seq2seq4repair_space>'prefLocation.coordinates':<seq2seq4repair_space>{<seq2seq4repair_space>$exists:<seq2seq4repair_space>true<seq2seq4repair_space>}<seq2seq4repair_space>}" , fields = "{<seq2seq4repair_space>'prefLocation.shape':<seq2seq4repair_space>0<seq2seq4repair_space>}" )