Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-381

Consider using bean introspection in place of jackson object mapper for binding bean properties to query parameters

    Details

    • Type: Enhancement
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.3.0.Beta7
    • Fix Version/s: None
    • Component/s: jberet-support
    • Labels:
      None

      Description

      Some item writers in jberet-support (e.g., JdbcItemWriter, JmsItemWriter, etc) currently use Jackson ObjectMapper to get a Map (propertyName, propertyValue) from the pojo data item. Jackson primarily as a JSON framework basically performs deep serialization of all bean properties. It does not support a shallow conversion to an object map.

      For the purpose of binding to query parameters, we just need:

      date1 : java.util.Date instance
      foo1: Foo instance

      We do not need

      date1: 123456789 (date as time value, or 2018-01-02 ISO format string)
      foo1:

      {fooName: xxx, fooDescription: yyy}

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                cfang Cheng Fang
                Reporter:
                cfang Cheng Fang
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: