|
|
|
|
@ -16,6 +16,8 @@
@@ -16,6 +16,8 @@
|
|
|
|
|
|
|
|
|
|
package org.springframework.boot.data.mongodb.test.autoconfigure; |
|
|
|
|
|
|
|
|
|
import org.jspecify.annotations.Nullable; |
|
|
|
|
|
|
|
|
|
import org.springframework.data.mongodb.core.mapping.Document; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
@ -26,23 +28,23 @@ import org.springframework.data.mongodb.core.mapping.Document;
@@ -26,23 +28,23 @@ import org.springframework.data.mongodb.core.mapping.Document;
|
|
|
|
|
@Document(collection = "exampleDocuments") |
|
|
|
|
public class ExampleDocument { |
|
|
|
|
|
|
|
|
|
private String id; |
|
|
|
|
private @Nullable String id; |
|
|
|
|
|
|
|
|
|
private String text; |
|
|
|
|
private @Nullable String text; |
|
|
|
|
|
|
|
|
|
public String getId() { |
|
|
|
|
public @Nullable String getId() { |
|
|
|
|
return this.id; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setId(String id) { |
|
|
|
|
public void setId(@Nullable String id) { |
|
|
|
|
this.id = id; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public String getText() { |
|
|
|
|
public @Nullable String getText() { |
|
|
|
|
return this.text; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setText(String text) { |
|
|
|
|
public void setText(@Nullable String text) { |
|
|
|
|
this.text = text; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|