_class field and spring data couchbase
问题 So, I was trying to find a way to remove/rename( and change the fields value ) the _class field from the document generated by spring data couchbase as the document is going to be stored by one service and in all likeliness be consumed by someone totally different. I was playing around with the api for spring couchbase and through a bit of trial and error found that I can rename the _class field with a custom value using the following way -> 1) Override the typeKey method in a class