You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by "Andrus Adamchik (JIRA)" <de...@cayenne.apache.org> on 2008/10/16 16:30:11 UTC
[jira] Closed: (CAY-1122) columnNamesCapitalization property is
ignored for the queries mapped via Modeler
[ https://issues.apache.org/cayenne/browse/CAY-1122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrus Adamchik closed CAY-1122.
--------------------------------
Resolution: Fixed
Fix Version/s: 3.0
> columnNamesCapitalization property is ignored for the queries mapped via Modeler
> --------------------------------------------------------------------------------
>
> Key: CAY-1122
> URL: https://issues.apache.org/cayenne/browse/CAY-1122
> Project: Cayenne
> Issue Type: New Feature
> Components: Cayenne Core Library
> Affects Versions: 3.0
> Reporter: Artyom Sokolov
> Assignee: Andrus Adamchik
> Fix For: 3.0
>
> Attachments: caseTest.txt, caseTest_1.txt
>
>
> Currently to achieve the same functionality we need to write next code:
> SQLTemplate query = (SQLTemplate) dataContext.getEntityResolver().lookupQuery("GetUris");
> query.setColumnNamesCapitalization(SQLTemplate.UPPERCASE_COLUMN_NAMES);
> List<Uri> uris = dataContext.performQuery(query);
> It could be much better to write just this:
> NamedQuery query = new NamedQuery("GetUris");
> query.setColumnNamesCapitalization(SQLTemplate.UPPERCASE_COLUMN_NAMES);
> List<Uri> uris = dataContext.performQuery(query);
> Code without casts looks more pretty and clean... doesn't it? :)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.