title: Use JsonInclude annotation to ignore empty values in a extended class
body: <p>Java 1.8, Jackson library 2.1.5</p>
  
  <p>I need to override the behaviour of how an object is serialized in json.</p>
  
  <p>What i need is to ignore the <code>bonus</code> property from the serialized json response in case the value is null and the employee is a <code>Partner</code> employee. However trying the code below does not seem to work as expected.</p>
  
  <pre><code>class Employee{
      private String bonus;
      public String getBonus(){return bonus;}
      public String setBonus(){this.bonus = bonus;}
  }
  
  class Partner extends Employee{
      @Override
      @JsonInclude(NON_NULL)
      public String getBonus(){return super.getBonus();}
  }
  </code></pre>
  
  <p>Any help?</p>