customizing hibernate properties in hyperjaxb

南楼画角 提交于 2019-12-02 06:59:43

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!