0
我有一个课程对象。课程对象有一组教程和一组应用程序。当我删除课程对象时,我希望相关的一组教程和应用程序被删除。我course.hbm如下,和我application.hbm包含如何级联Hibernate中的删除?
<property name="appdatetime" type="timestamp">
<column name="appdatetime" length="19" />
</property>
<property name="appstatus" type="java.lang.Integer">
<column name="appstatus" />
</property>
<property name="apptype" type="java.lang.Integer">
<column name="apptype" />
</property>
<many-to-one name="course" column="cid"/>
<many-to-one name="employee" column="empid" />
如果您需要紧急帮助,请在问题中添加赏金。将它命名为'please help'通常只会引导人们离开。 – 2009-05-04 10:26:44
其重复http://stackoverflow.com/questions/810404/hibernate-deletion – 2009-05-04 10:41:40