Quote:
Is this a good thing, or do I need to go back and be more judicious?
I would assume that you would need to be “more judicious” in the use of Cascade = “All”. Have you seen link:
http://hibernate.org/98.html?cmd=prntdocExcerpt:
Quote:
Currently setting the cascading options on the relationships is not possible (will be in the near future) so you can post process the hbm files to select the appropriate setting. The following Ant target illustrates one approach using the replaceregex Ant task.
Code:
<target name="hbm2java"
description="Generate .java from .hbm files." depends="init">
<property name="hbm.dir" location="${build.generate.dir}/com/mappings/"/>
<replaceregexp
match='cascade="none"'
replace='cascade="all"'
byline="true">
<fileset dir="${hbm.dir}" includes="MapRequest.hbm.xml,MapRun.hbm.xml" />
</replaceregexp>