Kava Pava Gava Tava Nava Zava Java

everything about Java
随笔 - 15, 文章 - 0, 评论 - 1, 引用 - 0
数据加载中……

Hibernate

Hibernate, Hibernate Annotation, Hibernate Validation, Hibernate Search, Hibernate Integration with Others
Hibernate 的 Proxy 陷阱
     摘要: Hibernate 是个很透明的框架。Hibernate 使用 Proxy 做 lazy loading。。。。看起来也很透明。。。。但还是有一堵墙在那里,小心不要一头撞在上面。本文讨论关于 Hibernate 使用 Proxy 要注意的两个陷阱。  阅读全文

posted @ 2010-01-11 12:15 bing 阅读(3530) | 评论 (0)  编辑

总结 Hibernate 的 Optimistic Concurrency Control
     摘要: 带有版本标记的 Optimistic Concurency Control 是唯一既能提供高度并发,又能提供可扩展性的解决方案。就是说,很多人可以一起对一些数据同时进行操作,而这些操作又尽量不会造成互相冲突。Hibernate Reference 第11章11.3 讲述 Hibernate 进行 Optimistic Concurrency Control 的方法。本文是我对该小节阅读后的总结和理解。

  阅读全文

posted @ 2009-12-16 12:27 bing 阅读(1587) | 评论 (0)  编辑

Step by step, using hibernate hbm2ddl to generate schema from annotation
     摘要: Run hibernate tools "hbm2ddl" to generate schema DDL into "schema.sql" from annotated entities. Step by Step!  阅读全文

posted @ 2009-12-09 17:45 bing 阅读(2076) | 评论 (0)  编辑

Set oracle.jdbc.V8Compatible=true when using higher version JDBC driver to access 8i databases, or strange things will happen
     摘要: You shall set oracle.jdbc.V8Compatible=true when using higher version JDBC driver to access 8i databases, or strange things will happen.  阅读全文

posted @ 2009-12-09 15:04 bing 阅读(4008) | 评论 (0)  编辑