Java开发
摘要: 1 load是要用的时候才从数据库去查询,get 是马上查询。 2 对于不存在的记录,get会报空指针异常,load会报 org.hibernate.ObjectNotFoundException: No row with the given identifier exists 使用load时,此时 阅读全文
posted @ 2016-05-18 15:38 King Bruce 阅读(121) 评论(0) 推荐(0) 编辑