title: Generating same class with different variables merged from different XSDs in JAXB
body: <p>I have two schemas as mentioned below. I am using JAXB in eclipse to create classes from schemas and I want single class "Object" to have both x and y.
   But when trying to generate the classes from xsd in eclipse, once I create class "Object" using a.xsd, it is being replaced/Overwritten when trying to create classes from b.xsd. Please advise.</p>
  
  <p>a.xsd:</p>
  
  <pre><code>&lt;message&gt;
  &lt;event&gt;
  &lt;object&gt;
  &lt;x&gt;..&lt;/x&gt;
  &lt;/object&gt;
  &lt;/event&gt;
  &lt;/message&gt;
  </code></pre>
  
  <p>b.xsd</p>
  
  <pre><code>&lt;message&gt;
  &lt;event&gt;
  &lt;object&gt;
  &lt;y&gt;..&lt;/y&gt;
  &lt;/object&gt;
  &lt;/event&gt;
  &lt;/message&gt;
  </code></pre>