wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes Can't retrieve value from JsonNode mapped via Ektorp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Can Watch "Can New topic
Author

Can't retrieve value from JsonNode mapped via Ektorp

James Gibbs
Greenhorn

Joined: Feb 21, 2013
Posts: 29

I'm building an Android app which replicates a CouchDB using TouchDB. I create a view with all the documents and pass it to my own implementation of CouchBaseViewAdapter, which links it to my ListView:



In the SyncListAdapter I override getView() and try and extract the "header" field of each JsonNode which has each has been mapped to the results of my viewquery by Ektorp:



However item.get("header") always returns null, even though the same amount of list items are populated as the amount of docs in the DB, so I assume everything else is working.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can't retrieve value from JsonNode mapped via Ektorp