摘要:
主表 hbm.xml中 使用<one-to-one> 从表hbm.xml中使用<many-to-one> 并指定unique=true people.hbm.xml: <one-to-one name="passport" cascade="all" property-ref="people"> p 阅读全文
posted @ 2017-03-18 23:11
洞玄巅峰
阅读(139)
评论(0)
推荐(0)
摘要:
1、大数据量批量插入造成Exception in thread "main" java.lang.OutOfMemoryError 内存溢出异常 正常插入: session.save(obj); 解决办法: 使用stateSession StatelessSession session = hibe 阅读全文
posted @ 2017-03-18 23:04
洞玄巅峰
阅读(153)
评论(0)
推荐(0)

浙公网安备 33010602011771号