Adding Supporting Documents for Lookups

Does anyone have an example for JAVA SDK? How to create a document and how you can retrieve it by using a supporting document.

Here is an example for RoR.

http://www.couchbase.com/docs/couchbase-devguide-2.0/reference-docs-and-...

1 Answer

« Back to question.

Hello,

If you look in the RoR code you have nothing special here, if you want to do the same with Java you just have to use:
- a JSON API for example GSON or Jackson
- call the get and set operations

I have created a simple gist for you, it is available here:
https://gist.github.com/tgrall/6105234

Let me know if this is not enough.

Regards
Tug
@tgrall