We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9add0c commit ae43ed9Copy full SHA for ae43ed9
src/main/java/org/springframework/data/couchbase/core/mapping/BasicCouchbasePersistentProperty.java
@@ -27,6 +27,8 @@
27
28
import com.couchbase.client.core.deps.com.fasterxml.jackson.annotation.JsonProperty;
29
30
+import java.util.Locale;
31
+
32
/**
33
* Implements annotated property representations of a given {@link Field} instance.
34
* <p/>
@@ -100,7 +102,7 @@ public boolean isIdProperty() {
100
102
return true;
101
103
}
104
// is field named "id"
- if(getName().equals("id")){
105
+ if(getField() != null && this.getFieldName().toLowerCase(Locale.ROOT).equals("id")){
106
107
108
return false;
0 commit comments