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

Enhance BasicRowProcessor to have row mapping easier to configure

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4
    • 1.5
    • 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

        1. DBUTILS-91.patch
          4 kB
          Stevo Slavić

        Activity

          People

            simone.tripodi Simone Tripodi
            sslavic Stevo Slavić
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: