Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-2739

JDBC Stored Procedure Adapters <returning-resultset>'s 'row-mapper' attribute should be converted into Bean reference

    XMLWordPrintable

    Details

    • Type: Refactoring
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 2.2 M4
    • Fix Version/s: 3.0 RC1
    • Component/s: JDBC Support
    • Labels:

      Description

      Now we can configure 'row-mapper' only as 'fully qualified class name':

      <jdbc:stored-proc-inbound-channel-adapter>
      		<jdbc:returning-resultset name="out" row-mapper="org.springframework.jdbc.core.ColumnMapRowMapper"/>
      	</jdbc:stored-proc-inbound-channel-adapter>
      

      It's a bit limited ability.
      It will be more flexible, if this attribute will be converted into bean reference as it is done in the <jdbc:outbound-gateway>.
      Some additional useful ability will be interest too:

      <jdbc:returning-resultset name="out" row-mapper="#{new org.springframework.jdbc.core.BeanPropertyRowMapper(T(com.my.entity.SomeEntity))}"/>
      

        Attachments

          Activity

            People

            Assignee:
            abilan Artem Bilan
            Reporter:
            abilan Artem Bilan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: