标签:style blog http color java os strong io
many.setOne(null);//解除与one的关联关系
//由于是在set遍历时进行操作,需要在iter中删除,否则会报java.util.ConcurrentModificationException
//如果是直接取出的many,则不需要此步骤
iter.remove();
s.remove(many);
session.delete(many);//删除many
hibernate 的配置 cascade,布布扣,bubuko.com
标签:style blog http color java os strong io
原文地址:http://www.cnblogs.com/malaya/p/3877403.html