title: JAXB - Should we bind classes with @XmlSeeAlso if they are fields of the same class
body: <p>Lets have the following class:</p>
  
  <pre><code>@XmlType(name = "TestClass")
  //@XmlSeeAlso({SomeClassOne.class, SomeClassTwo.class})
  public class TestClass{
  
      @XmlElement
      private SomeClassOne someClassOne;
  
      @XmlElement
      private SomeClassTwo someClassTwo;
  
  }
  </code></pre>
  
  <p>I try to serialize the object to XML using context and Marshaller. We have the following statement </p>
  
  <pre><code>context = JAXBContext.newInstance(TestClass.class);
  </code></pre>
  
  <p>The question is: Should I describe all binding classes of TestClass (which are SomeClassOne and SomeClassTwo) in the @XmlSeeAlso -     <code>@XmlSeeAlso({SomeClassOne.class, SomeClassTwo.class})</code></p>