Raw document retrieval


#1

Is there anyway to get the raw json document from the bucket using spring data couchbase api’s. I know its possible to use the sdk directly and do it, but for purposes of consistency wanted to go through the spring data api to do this. Even the simplest findbyId requires an entity class to be passed in

public T findById(final String id, Class entityClass) {


#2

Only the bucket interface can be used to get a JsonDocument which is not part of the entity repository model.
The bucket bean on SDC can be retrieved like getApplicationContext().getBean(BeanNames.COUCHBASE_BUCKET)