cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Evgeny Ryabitskiy (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAY-1287) SQLTemplate for not-mapping (DataRow) queries
Date Thu, 01 Oct 2009 22:00:24 GMT

     [ 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.


Mime
View raw message