Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 92767 invoked from network); 31 Jan 2008 09:03:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jan 2008 09:03:56 -0000 Received: (qmail 55069 invoked by uid 500); 31 Jan 2008 09:03:46 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 55053 invoked by uid 500); 31 Jan 2008 09:03:46 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 55041 invoked by uid 99); 31 Jan 2008 09:03:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jan 2008 01:03:46 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of goetzger@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 31 Jan 2008 09:03:18 +0000 Received: (qmail invoked by alias); 31 Jan 2008 09:03:23 -0000 Received: from stgt-4dbe418c.pool.einsundeins.de (EHLO [192.168.10.1]) [77.190.65.140] by mail.gmx.net (mp014) with SMTP; 31 Jan 2008 10:03:23 +0100 X-Authenticated: #286618 X-Provags-ID: V01U2FsdGVkX18VliYbtvwVMvJIKONnWyv7+uTiTw4i2IC/mu0Xfr xU0l53N1ZbAkWP Message-ID: <47A18EDB.8090403@gmx.de> Date: Thu, 31 Jan 2008 10:03:23 +0100 From: =?ISO-8859-1?Q?Heinrich_G=F6tzger?= User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: user-java@ibatis.apache.org Subject: description/documentation/comments in sqlMap Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org Hello, what is the recommended way or the best practice to add comments and documentation into the sqlMap and the containing selects? Using -- in the select tag is impossible. Using /* ...*/ is easy, but probably the worst thing. If it is within the select-tag it will be handled from the framework as part of the select and will be passed to the jdbc code. Using is good. It can be used at every place in the sqlMap. But it is not ensuring the connection between comment and sql-code. So I would like to know if there are other methods or at least ideas for some tags/attributes for comment, documentation or description within the select-tag? Using xml-notation based on xsd or dtd would enable further xml-processing outside of iBATIS as well. So, these are just some ideas and I probably missed this already existing construct. Thanks and cheers Heinrich