Uploaded image for project: 'Commons DbUtils'
  1. Commons DbUtils
  2. DBUTILS-91

Enhance BasicRowProcessor to have row mapping easier to configure

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5
    • Labels:
      None

      Description

      BasicRowProcessor by default makes use of BeanProcessor for mapping result set row columns to bean property names. BeanProcessor uses bean property names, and performs case-insensitive matching of those names to column names.

      Currently BasicRowProcessor can be configured with custom BeanProcessor extension to customize the row mapping, but it gets rather ugly.

      It would be great if BeanProcessor was configurable with column name to bean property name strategy. Besides current strategy, DbUtils should also bundle strategy implementation configurable with a property name to column name (or other way around) map.

        Attachments

          Activity

            People

            • Assignee:
              simone.tripodi Simone Tripodi
              Reporter:
              sslavic Stevo Slavic
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: