hibernate级联操作123

1
2
3
4
5
6
7
8
9
<many-to-one name="category" class="Category" cascade="save-update">
<!-- 映射的字段 -->
<column name="categoryId"/>
</many-to-one>
cascade
none;//默认
save-update;
delete;
all;