Hibernate
firestone-sh
技术的蜗牛
展开
-
Hibernate Cache
1. get/load区别如果记录存在,get返回对象(或代理对象);否则返回null。如果记录存在,load返回对象;否则返回 NotObjectFoundException2.hibernate Cache2.1 一级缓存,在当前session内2.2 Query CacheCache queries and results.方法:1. 在hiberante Configuration 文件中原创 2012-10-08 13:37:28 · 343 阅读 · 0 评论 -
Hibernate笔记
1. inverse=true | false 2. cascade 3. lazy-loading 4. session-per-request & open session filter 5. transaction原创 2012-10-08 13:54:13 · 271 阅读 · 0 评论 -
open session in view
摘自:http://community.jboss.org/wiki/OpenSessioninView 1. 问题描述A common issue in a typical (web-)application is the rendering of the view, after the main logic of the action has been completed, and there原创 2012-10-08 13:55:15 · 496 阅读 · 0 评论 -
Hibernate 小知识
1. inverse在one-to-many和many-to-many中 inverse 默认值是false 根据hibernate reference所说:the non-inverse side is used to save the in-memory representation to the database.The non-inverse side即 inverse=false的那一端原创 2012-10-08 13:55:23 · 233 阅读 · 0 评论 -
Hibernate笔记
1. inverse=true | false 2. cascade 3. lazy-loading 4. session-per-request & open session filter 5. transaction demarcation原创 2009-12-16 08:08:48 · 61 阅读 · 0 评论 -
Hibernate Cache
1. get/load区别如果记录存在,get返回对象(或代理对象);否则返回null。如果记录存在,load返回对象;否则返回 NotObjectFoundException2.hibernate Cache2.1 一级缓存,在当前session内2.2 Query CacheCache queries and results.方法:1. 在hib...原创 2009-02-21 20:33:51 · 72 阅读 · 0 评论 -
open session in view
摘自:http://community.jboss.org/wiki/OpenSessioninView 1. 问题描述A common issue in a typical (web-)application is the rendering of the view, after the main logic of the action has been completed, and...原创 2010-05-23 23:26:39 · 117 阅读 · 0 评论 -
Hibernate 小知识
1. inverse在one-to-many和many-to-many中 inverse 默认值是false 根据hibernate reference所说:the non-inverse side is used to save the in-memory representation to the database.The non-inverse side即 inver...原创 2010-06-04 20:41:46 · 74 阅读 · 0 评论 -
hibernate session 管理
1. Session per Operation (Anti pattern) 2. Session per Request use "Open Session In View" when rendering layer seperate from servlet, e.g. in JSP 3. Session per Request with detached obje...原创 2012-02-05 18:44:57 · 83 阅读 · 0 评论