I defined a LinkedHashMap Field:
@Field(“circle_posts_map”)
private LinkedHashMap<String,CirclePostsData> circlePostsMap;
I traced the insert order in my logger and I noticed that the insert order was changed when viewing/retrieving the document.
I used the save method of the CouchbaseTemplate for adding my document to the database.
org.springframework-version 4.1.4.RELEASE
com.couchbase.client-version 1.4.4
spring-data-couchbase-version 1.2.2.RELEASE