Update sample code. (#287)
* Upgrade version to 2.0.5 * Remove Indexing Lazy. Signed-off-by: Pan Li <panli@microsoft.com>
This commit is contained in:
Родитель
37e07e98d8
Коммит
31b2a7f75a
|
@ -20,7 +20,7 @@
|
|||
<dependency>
|
||||
<groupId>com.microsoft.azure</groupId>
|
||||
<artifactId>spring-data-cosmosdb</artifactId>
|
||||
<version>2.0.4</version>
|
||||
<version>2.0.5</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
|
|
@ -16,9 +16,7 @@
|
|||
|
||||
package example.springdata.cosmosdb;
|
||||
|
||||
import com.microsoft.azure.documentdb.IndexingMode;
|
||||
import com.microsoft.azure.spring.data.cosmosdb.core.mapping.Document;
|
||||
import com.microsoft.azure.spring.data.cosmosdb.core.mapping.DocumentIndexingPolicy;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
@ -28,7 +26,6 @@ import org.springframework.data.annotation.Id;
|
|||
import java.util.List;
|
||||
|
||||
@Document(collection = "mycollection")
|
||||
@DocumentIndexingPolicy(mode = IndexingMode.Lazy)
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Getter
|
||||
|
|
Загрузка…
Ссылка в новой задаче