Hei-po  

2017年6月5日

摘要: http://jingyan.baidu.com/album/0320e2c1d4dd0b1b87507b38.html?picindex=12 阅读全文
posted @ 2017-06-05 15:29 Hei-po 阅读(179) 评论(0) 推荐(0) 编辑
 
摘要: oracle 中删除表 drop delete truncate 相同点,使用drop delete truncate 都会删除表中的内容 drop table 表名 delete from 表名(后面不跟where语句,则也删除表中所有的数据) truncate table 表名 区别 首先del 阅读全文
posted @ 2017-06-05 14:47 Hei-po 阅读(166) 评论(0) 推荐(0) 编辑
 
摘要: 01使用session中的load方法查询数据库中的记录时,我们返回的是一个代理对象,而不是真正需要的那个对象. 02 因为代理对象的出现 才导致延迟加载。 还有采用懒加载的时候容易出现nosession的错误 请大家注意,一般是事务已经提交session已经关闭,而我们还要去查询数据库,所以hib 阅读全文
posted @ 2017-06-05 12:09 Hei-po 阅读(90) 评论(0) 推荐(0) 编辑