How do i insert a POJO objects using couchbase-lite 2.0 in android


#1

I have used an 1.4.1 version of the couchbase-lite android. In that version i can insert an object into a Document easily. Map<String, Object> here this object can be anything.

But in the latest version i am unable to insert the Object and it’s expecting to be below object and throwing error.

“MutableDictionary, Dictionary, MutableArray, Array, Map, List, Date, String, Number, Boolean, Blob or null”

is there any alternate way to avoid this issue.


#2

There is no way to avoid this issue. You will need to adjust the things your application saves until if and when Couchbase Lite implements object mapping.


#3

Oh, other than of course forking the project since it is open source.