The default configuration of hyperjaxb
is creating hibernate annotations that result in hibernate
annotations that produce incredibly verbose SQL
You can customize default mappings as you want:
http://confluence.highsource.org/display/HJ3/Customizing+default+mappings
Here are the default customizations.
And here's a test project which customizes defaults.
For instance, customizing the default cascade for many-to-one
would look like (untested):
<jaxb:bindings schemaLocation="schema.xsd" node="/xs:schema">
<hj:persistence>
<hj:default-many-to-one>
<!-- So what do you think to be a reasonable default mapping? -->
<orm:cascade>
<orm:cascade-persist/>
</orm:cascade>
</hj:default-many-to-one>
</hj:persistence>
</jaxb:bindings>
Further links:
Please check the documentation. You can (but don't have to) customize a lot.