[jira] Updated: (CAY-1122) Add setColumnNamesCapitalization(String columnNameCapitalization) method to NamedQuery class

From: Loiko Dima (JIRA) ("Loiko)
Date: Thu Oct 16 2008 - 09:47:11 EDT

  • Next message: Ricardo Ghisi Tobaldini (JIRA): "[jira] Updated: (CAY-1125) MySQL SMALLINT UNSIGNED is mapped as java.lang.Short, should be java.lang.Integer"

         [ https://issues.apache.org/cayenne/browse/CAY-1122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Loiko Dima updated CAY-1122:
    ----------------------------

        Attachment: caseTest_1.txt

    > Add setColumnNamesCapitalization(String columnNameCapitalization) method to NamedQuery class
    > --------------------------------------------------------------------------------------------
    >
    > 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
    > 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.
    



    This archive was generated by hypermail 2.0.0 : Thu Oct 16 2008 - 09:48:04 EDT