title: Overriding @jsonIgnore in subclass
body: <p>I have a class Parent</p>
  
  <pre><code>public class Parent
  {
     private int id;
  
     @JsonIgnore
     int getId() {}
  
     void setId(int id) {}
  }
  </code></pre>
  
  <p>I have a subclass which is derived from Parent</p>
  
  <pre><code>public class Child extends Parent
  {
      @JsonProperty   // just to explicitly tell jackson to serialize this
      @Override
      int getId() {}
  
      @Override
      void setId(int id) {}
  }
  </code></pre>
  
  <p>I actually don't want the id property to be serialized when an object of Parent is returned but it should be serialized when an object of Child class is returned. </p>
  
  <p>I think if Parent was an Interface, overriding the visibility would work, but I am not sure if the behavior is the same with superclass.</p>
  
  <p>Is there a simple solution for this? I would really appreciate your answers. Tx. </p>