摘自http://blog.csdn.net/woshichenxu/archive/2006/01/22/586361.aspx 1. 关于hibernate缓存的问题: 1.1.1. 基本的缓存原理 Hibernate缓存分为二级,第一级存放于session中称为一级缓存,默认带有且不能卸载。 第二级是由sessionFactory控制的进程级缓存。是全局共享的缓存,凡是会调用二级缓存的查询方法 都会从中受益。只有经正确的配置后二级缓存才会发挥作用。同时在进行条件查询时必须使用相应的方法才能从缓存中获取数据。比如Query.iterate()方法、load ...
  • 16:42
  • 浏览 (72)
  • 评论 (0)
一、inverse = ? inverse=false(default) 用于单向one-to-many关联 parent.getChildren().add(child) // insert child parent.getChildren().delete(child) // delete child inverse=true 用于双向one-to-many关联 ...
  • 09:23
  • 浏览 (79)
  • 评论 (1)
引用1.交集 Inner Join, 等价于select * from a b where a.id=b.id ,*表示a.*,b.*,一笔纪录你可以取出a,b的栏位 left join 或right join 可以表示差集 ,一笔纪录你可以取出a,b的栏位 full join才是表示并集,select * from a full join b on a.id=b.id ,a.id=b.id 为一笔纪录,其他不等的纪录都可以显示,例如a的栏位和null栏位组合 ...
  • 10:12
  • 浏览 (83)
  • 评论 (0)
lingzantia
搜索本博客
最近加入圈子
最新评论