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

columnNamesCapitalization property is ignored for the queries mapped via Modeler

    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

        1. caseTest_1.txt
          5 kB
          dzmitar
        2. caseTest.txt
          4 kB
          dzmitar

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: