Uploaded image for project: 'Spring Data REST'
  1. Spring Data REST
  2. DATAREST-117

@JsonIgnore and other Jackson annotations are ignored

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 2.0 GA (Codd)
    • Component/s: None
    • Labels:
      None

      Description

      Github Author: speedyg
      Github Last-Updated: 2013-08-21T10:01:31Z
      This issue was automatically imported from github

      In my application and in the example application the @JsonIgnore annotation is ignored.

      Reproduce:
      Add an @JsonIgnore annotation to the field status in Order.java. The status field should not be serialized.
      Call http://localhost:8080/restbucks/orders/1

      The status property is (still) exported.

      Also tried @JsonIgnoreProperties and @XmlTransient, no effect.

      Additionally, i am not able to find another way to exclude a property.

        Attachments

          Activity

            People

            • Assignee:
              olivergierke Oliver Gierke
              Reporter:
              thomasd Thomas Darimont
              Last updater:
              Oliver Gierke
            • Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: