title: Customizing jaxb bindings for primtive
body: <p>I have several schemas I am generating jaxb bindings for that make liberal use of <code>xs:integer</code>.  I wish to have these values bound to <code>long</code>/<code>Long</code> rather than the default BigInteger.  Unfortunately I do not have the ability to modify the schemas.  Adding a simple declaration to my bindings file causes <code>xs:integer</code> to be bound to <code>Long</code> in all cases, even when it's a required value:</p>
  
  <pre><code>&lt;jaxb:javaType xmlType="xs:integer" name="long" /&gt;
  </code></pre>
  
  <p>How can I get <code>xs:integer</code> to be bound to a primitive when the field is required?</p>