|
|
|
|
@ -16,6 +16,8 @@
@@ -16,6 +16,8 @@
|
|
|
|
|
|
|
|
|
|
package org.springframework.boot.data.couchbase.test.autoconfigure; |
|
|
|
|
|
|
|
|
|
import org.jspecify.annotations.Nullable; |
|
|
|
|
|
|
|
|
|
import org.springframework.data.annotation.Id; |
|
|
|
|
import org.springframework.data.couchbase.core.mapping.Document; |
|
|
|
|
import org.springframework.data.couchbase.core.mapping.id.GeneratedValue; |
|
|
|
|
@ -31,9 +33,10 @@ public class ExampleDocument {
@@ -31,9 +33,10 @@ public class ExampleDocument {
|
|
|
|
|
|
|
|
|
|
@Id |
|
|
|
|
@GeneratedValue(strategy = GenerationStrategy.UNIQUE) |
|
|
|
|
@SuppressWarnings("NullAway.Init") |
|
|
|
|
private String id; |
|
|
|
|
|
|
|
|
|
private String text; |
|
|
|
|
private @Nullable String text; |
|
|
|
|
|
|
|
|
|
public String getId() { |
|
|
|
|
return this.id; |
|
|
|
|
@ -43,11 +46,11 @@ public class ExampleDocument {
@@ -43,11 +46,11 @@ public class ExampleDocument {
|
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|