Hey, i am not able to find a @Expose equivalent from Gson in Couchbase. In fact i did not find any information about annotations in general. Are there none or can someone refer me to them?
At least regarding JCBC-433 there should be no such document ( https://issues.couchbase.com/browse/JCBC-433 )
If there is no @Expose - what would the general approach be to save classes only partially. Create ContainerObjects implementing Serializable for every Class-File? Have a own .serialize() method for every class? Extend the PersistenceLayer with Class -> Map Code?
Using gson would mean unneeded re-converting
fromGson() -> String -> JsonObject.fromJson() -> (and internally the) transcoder.encode()
Any Tips? Is there a “best practice” document somewhere?