title: How to exclude hidden-field in superclass in favor of the one in subclass GSON?
body: <p>I have these two base classes:</p>
  
  <pre><code>class BasePost {
     private String id;
     private String creator;
     private BasePostMeta postMeta;
  }
  
  class BasePostMeta {
     private String title;
     private String content;
  }
  </code></pre>
  
  <p>And some other that extending them:</p>
  
  <pre><code>class ProjectPost extends BasePost {
      private ProjectPostMeta postMeta;
  }
  
  class ProjectPostMeta extends BasePostMeta {
      private String startDate;
      private String endDate;
  }
  </code></pre>
  
  <p>As you can see I will hide the <code>postMeta</code> if I need.</p>
  
  <p>When I tried to serialize it with GSON,  I got "multiple fields" warning for <code>postMeta</code>. I've looked into <a href="https://stackoverflow.com/a/20117863/2649132">this answer</a> utilizing ExclusionStrategy but it hides the subclass field in favor of superclass field.</p>
  
  <p>How to achieve the other way around?</p>