title: Jackson ignore all properties of superclass from external library
body: <p>I am developing using an ORM where I extend a base orm class to create tables. </p>
  
  <p>For example: </p>
  
  <pre><code>public class Person extends DbItem {
      @JsonIgnore
      private String index;
  
      private String firstName;
  
      private String lastName;
  }
  </code></pre>
  
  <p>Problem is that when I use ObjectMapper to serialize, it tries to serialize the members of the DbItem class. Is there any simple way to prevent this? For example with an annotation.</p>
  
  <p>I had a look at a similar problem <a href="https://stackoverflow.com/questions/26945580/jackson-serialization-how-to-ignore-superclass-properties">Jackson serialization: how to ignore superclass properties</a> but I was hoping it could be done simpler, and I'm not sure if I could do it as I can't change the superclass since it is in an external library.</p>