Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A01E7740 for ; Thu, 14 Jul 2011 09:19:39 +0000 (UTC) Received: (qmail 70863 invoked by uid 500); 14 Jul 2011 09:19:38 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 70406 invoked by uid 500); 14 Jul 2011 09:19:27 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 70369 invoked by uid 99); 14 Jul 2011 09:19:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2011 09:19:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2011 09:19:21 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DB49F578EE for ; Thu, 14 Jul 2011 09:18:59 +0000 (UTC) Date: Thu, 14 Jul 2011 09:18:59 +0000 (UTC) From: "Jan Lehnardt (JIRA)" To: dev@couchdb.apache.org Message-ID: <1870401032.12819.1310635139894.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <399559220.12693.1310630522012.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-1222) Naming convention: _id/_rev and id/rev MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-1222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065133#comment-13065133 ] Jan Lehnardt commented on COUCHDB-1222: --------------------------------------- Your code must follow the rule I outlined. The model was chosen with much thought and is the best solution. The dev@ mailing list archives have the full history on this one. > Naming convention: _id/_rev and id/rev > -------------------------------------- > > Key: COUCHDB-1222 > URL: https://issues.apache.org/jira/browse/COUCHDB-1222 > Project: CouchDB > Issue Type: Improvement > Reporter: Johnny Weng Luu > Priority: Minor > > I'm using a MVC framework to communicate with CouchDB. > Sometimes CouchDB returns _id/_rev and other times id/rev. > Could either one of them be used instead, cause the model layer usually have pre set fields that can't be changed. > And this would also not confuse developers when they are parsing the result. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira