@Nullable private IndexDefinitionHolder createIndexDefinitionHolderForProperty(String dotPath, String collection, MongoPersistentProperty persistentProperty) { if (persistentProperty.isAnnotationPresent(Indexed.class)) { return createIndexDefinition(dotPath, collection, persistentProperty); } else if (persistentProperty.isAnnotationPresent(GeoSpatialIndexed.class)) { return createGeoSpatialIndexDefinition(dotPath, collection, persistentProperty); } return null; }
@Nullable private IndexDefinitionHolder createIndexDefinitionHolderForProperty(String dotPath, String collection, MongoPersistentProperty persistentProperty) { if (persistentProperty.isAnnotationPresent(Indexed.class)) { return createIndexDefinition(dotPath, collection, persistentProperty); } else if (persistentProperty.isAnnotationPresent(GeoSpatialIndexed.class)) { return createGeoSpatialIndexDefinition(dotPath, collection, persistentProperty); } return null; }