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

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Major
    • None
    • 1.3.0.Beta7
    • jberet-support
    • 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}

      Attachments

        Activity

          People

            weinanli Weinan Li
            cfang@redhat.com Cheng Fang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: