Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-4604

Suppress json serialization of List of HippoBean in auto generated beans for platform webapp

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      We have a problem with jackson serialization when trying to serialize for the content feed:

      Adding:

      objectMapper.addMixIn(HippoCompoundBean.class, DefaultJsonIgnoreTypeMixin.class);
      

      in the object mapper does suppress for example .

      Address getAddress()
      

      from being serialized BUT something like

      List<Address> getAddress()
      

      still gets serialized even if 'Address' objects should be ignored!! Really unhandy. Therefor for now, suppress the serialization for List<HippoBean> altogether by adding JsonIgnore annotation to the runtime generated bean

      Most likely this will be a temporal solution

      Attachments

        Activity

          People

            Unassigned Unassigned
            aschrijvers Ard Schrijvers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: