@@ -86,7 +86,7 @@ public Mono<CouchbaseDocument> encodeEntity(final Object entityToEncode) {
86
86
}
87
87
88
88
@ Override
89
- public <T > Mono <T > decodeEntity (String id , String source , Long cas , Class <T > entityClass , String scope ,
89
+ public <T > Mono <T > decodeEntity (Object id , String source , Long cas , Class <T > entityClass , String scope ,
90
90
String collection ) {
91
91
return Mono .fromSupplier (() -> {
92
92
// this is the entity class defined for the repository. It may not be the class of the document that was read
@@ -118,7 +118,7 @@ public <T> Mono<T> decodeEntity(String id, String source, Long cas, Class<T> ent
118
118
+ TemplateUtils .SELECT_ID );
119
119
}
120
120
121
- final CouchbaseDocument converted = new CouchbaseDocument (id );
121
+ final CouchbaseDocument converted = new CouchbaseDocument (id . toString () );
122
122
123
123
// if possible, set the version property in the source so that if the constructor has a long version argument,
124
124
// it will have a value and not fail (as null is not a valid argument for a long argument). This possible failure
@@ -146,7 +146,7 @@ public <T> Mono<T> decodeEntity(String id, String source, Long cas, Class<T> ent
146
146
if (cas != null && cas != 0 && persistentEntity .getVersionProperty () != null ) {
147
147
accessor .setProperty (persistentEntity .getVersionProperty (), cas );
148
148
}
149
- N1qlJoinResolver .handleProperties (persistentEntity , accessor , template , id , scope , collection );
149
+ N1qlJoinResolver .handleProperties (persistentEntity , accessor , template , id . toString () , scope , collection );
150
150
return accessor .getBean ();
151
151
});
152
152
}
0 commit comments