I use CouchbaseRepository
in my project but sometimes I use lower level couchbase sdk methods to retrieve JsonDocument
. Is there a way I can use spring-data-couchbase
to convert a JsonDocument
to lets say a User
?
This is all done internally in CouchbaseTemplate
in the method private <T> T mapToEntity(String id, Document<String> data, Class<T> entityClass)
But as you can see it's private so I can't call it myself.