Return-Path: Delivered-To: apmail-cayenne-commits-archive@www.apache.org Received: (qmail 81044 invoked from network); 1 Oct 2009 22:00:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Oct 2009 22:00:51 -0000 Received: (qmail 86960 invoked by uid 500); 1 Oct 2009 22:00:51 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 86899 invoked by uid 500); 1 Oct 2009 22:00:51 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 86881 invoked by uid 99); 1 Oct 2009 22:00:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 22:00:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 22:00:48 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B36F9234C004 for ; Thu, 1 Oct 2009 15:00:24 -0700 (PDT) Message-ID: <56386652.1254434424723.JavaMail.jira@brutus> Date: Thu, 1 Oct 2009 15:00:24 -0700 (PDT) From: "Evgeny Ryabitskiy (JIRA)" To: commits@cayenne.apache.org Subject: [jira] Updated: (CAY-1287) SQLTemplate for not-mapping (DataRow) queries In-Reply-To: <2005709449.1254434003494.JavaMail.jira@brutus> 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/CAY-1287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Evgeny Ryabitskiy updated CAY-1287: ----------------------------------- Description: I wish to use nice SQLTemplate scripting engine for my simple not-mapping (DataRow) runtime-formed queries. But now I should pass a DataObject to SQLTemplate constructor. The question is: "For what?" To do mapping??? If my query is like: "SELECT max(id) as MAX_ID from Table1" it has no sense! I want to add constructor like: SQLTemplate(String defaultTemplate, Map parameter) and teach DataContext to perform such queries well. was:I wish to use nice SQLTemplate scripting engine for my simple not-mapping (DataRow) runtime-formed queries. > SQLTemplate for not-mapping (DataRow) queries > --------------------------------------------- > > Key: CAY-1287 > URL: https://issues.apache.org/jira/browse/CAY-1287 > Project: Cayenne > Issue Type: Bug > Components: Cayenne Core Library > Affects Versions: 2.0 branch > Reporter: Evgeny Ryabitskiy > Fix For: 1.2.5, 2.0.5, 3.0 beta 1, 3.0 > > > I wish to use nice SQLTemplate scripting engine for my simple not-mapping (DataRow) runtime-formed queries. > But now I should pass a DataObject to SQLTemplate constructor. > The question is: "For what?" > To do mapping??? > If my query is like: "SELECT max(id) as MAX_ID from Table1" it has no sense! > I want to add constructor like: SQLTemplate(String defaultTemplate, Map parameter) > and teach DataContext to perform such queries well. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.