Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1122

columnNamesCapitalization property is ignored for the queries mapped via Modeler

Agile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.0M5
    • Core Library
    • None

    Description

      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?

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            andrus Andrus Adamchik
            unnutz Artyom Sokolov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment