Torque
  1. Torque
  2. TORQUE-242

RecordMapper should use selected columns from Criteria

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0-beta1
    • Fix Version/s: 4.0
    • Component/s: Runtime, Templates
    • Labels:
      None

      Description

      Currently, when a select result is converted into objects, it is assumed that the selected columns are all columns in the table and that they are in the order as in the schema xml. This beraks if the user starts to add select rows in the criteria.
      Currently one must implement a custom record mapper to deal with this situation.
      It would be a nice feature if the record mapper could inspect the select crititera and map the columns accordingly. An appropriate error should be thrown if the record mapper does not map the result set.

      There are no Sub-Tasks for this issue.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Thomas Fox
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development