Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 43461 invoked from network); 21 Feb 2009 15:31:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Feb 2009 15:31:50 -0000 Received: (qmail 50667 invoked by uid 500); 21 Feb 2009 15:31:48 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 50581 invoked by uid 500); 21 Feb 2009 15:31:48 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 50523 invoked by uid 99); 21 Feb 2009 15:31:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Feb 2009 07:31:47 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 21 Feb 2009 15:31:40 +0000 Received: (qmail 14254 invoked from network); 21 Feb 2009 15:31:18 -0000 Received: from unknown (HELO ?IPv6:::1?) (127.0.0.1) by localhost with SMTP; 21 Feb 2009 15:31:18 -0000 Message-Id: From: Andrus Adamchik To: user@cayenne.apache.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Cayenne support for quoting of identifiers Date: Sat, 21 Feb 2009 10:31:18 -0500 Cc: dev@cayenne.apache.org X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org Folks, sorry for cross-post, but I figured this feature is critical to many people, and warrants an early announcement. We finally did it - Cayenne now supports optional db-specific quoting of identifiers in the generated SQL (including queries, updates and all DDL). Now you can use spaces and other special chars in the table and column names (not that this is a good idea, but sometimes you have no choice). Turning on quoting is done per DataMap in the Modeler. Current behavior is backwards compatible - no quoting is a default. This works on MySQL, PostgreSQL, HSQLDB and a few other DBs. Oracle, Sybase, SQLServer testing will be performed in a couple of weeks. This feature will go in 3.0M6, but if you want to try it right away, you can build Cayenne from trunk or grab a build from Hudson (rev >= 746523, should become available in a couple of hours) : http://hudson.zones.apache.org/hudson/view/Cayenne/job/Cayenne-trunk/lastBuild/ Andrus