Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C5631DF2B for ; Wed, 5 Dec 2012 12:43:32 +0000 (UTC) Received: (qmail 89682 invoked by uid 500); 5 Dec 2012 12:43:31 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 89304 invoked by uid 500); 5 Dec 2012 12:43:28 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 89272 invoked by uid 99); 5 Dec 2012 12:43:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2012 12:43:27 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of a.barysiuk@gmail.com designates 209.85.215.52 as permitted sender) Received: from [209.85.215.52] (HELO mail-la0-f52.google.com) (209.85.215.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2012 12:43:20 +0000 Received: by mail-la0-f52.google.com with SMTP id l5so3872847lah.11 for ; Wed, 05 Dec 2012 04:42:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=5sZndLo6LS0gtAeV5O6xKowbhBfiiBao1OakR4bEDh0=; b=SccVc32P9Gh7hiCNngmaW9d2+KlCciCpZB0HR3FQUj6vctU8wPZtCzaNwET1Wnfu6b QG2TYBxKLMDFC2LF+VsYODouKGU+osUIL8S8bY0Bld/RwadqAAhHWceKJq75paQiwQQM iCdQLzinN9ebTQwQSMJHbFL3R9yz4X8HqZEs1OcS81LZOq3QJof75dZziTEhEi+7rJzZ Jg8NHWPv75UtWxkvq2W7q9yHTyrIJYTifLyEX/fwPYNakMUgHDmwqdQE68tdno1s3XkJ bZiaMaYImfL8gktJDnjE3gyel22YCHTdcOyjANQYmY/12B3uddFTsj9dAq8FrEkq+cEt UlJQ== Received: by 10.152.110.229 with SMTP id id5mr16556527lab.36.1354711379425; Wed, 05 Dec 2012 04:42:59 -0800 (PST) Received: from [192.168.9.11] ([86.57.158.234]) by mx.google.com with ESMTPS id e4sm2098896lby.12.2012.12.05.04.42.57 (version=SSLv3 cipher=OTHER); Wed, 05 Dec 2012 04:42:58 -0800 (PST) Message-ID: <50BF4152.2050802@gmail.com> Date: Wed, 05 Dec 2012 15:42:58 +0300 From: Aliaksandr Barysiuk User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: user@couchdb.apache.org Subject: Re: touchdb+ektorp woes References: <20121205135627.334c1471@eee-az> In-Reply-To: <20121205135627.334c1471@eee-az> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I have never seen that couchdb returned results in other order than id,key,value. However IMHO its a Ektorp issue. I tried to run QueryResultParser test with id,value,key sequence and it's failed. I dont think that its very complicated to ignore the sequence. You could try to post issue/feature to Ektorp's github tracker https://github.com/helun/Ektorp/issues. Alex On 05/12/12 14:56, svilen wrote: > g'day > not sure if this is the proper place to ask.. > > i'm trying to use Touchdb on Android. > It is using Ektorp, and there's some defect in the POJO object Mapping. > > i've debugged it (very hard).. Ektorp's QueryResultParser > is expecting the properties of the result row (which is json object) to > be ordered id,key,value; while Touchdb is putting them in another > order (namely, value is before key). Hence the queryView( query, > some.class.to.map.to) never succeeds. > i'm not sure if the Ektorp's expectations are right (are attributes of > a js object ordered), or what. > > anyone to suggest something? > > the original iOS touchdb is my next step, i hope it is better there. > > ciao > svilen