Ray's playground

 

随笔分类 -  Hibernate/NHibernate

Transactions, concurrency, and caching(Chapter 5 of Hibernate In Action)
摘要:Hibernate provides a dual-layer caching system with a first-level object cache(the Session) and a pluggable second-level data cache. The first-level cache isalways active—it’s used to reso... 阅读全文

posted @ 2010-07-17 10:40 Ray Z 阅读(209) 评论(0) 推荐(1)

Working with persistent objects(Chapter 4 of Hibernate In Action)
摘要:In Hibernate, objects instantiated using the new operator aren’t immediately persistent.Their state is transient, which means they aren’t associated with any databasetable row, and so thei... 阅读全文

posted @ 2010-06-30 21:20 Ray Z 阅读(239) 评论(0) 推荐(0)

Mapping persistent classes(Chapter 3 of Hibernate In Action)
摘要:Along with Java identity (memory location) and object equality, we pickup database identity (location in the persistent data store). We now have three methodsfor identifying objects:  ■ Object i... 阅读全文

posted @ 2010-06-20 20:47 Ray Z 阅读(298) 评论(0) 推荐(0)

Introducing and integrating Hibernate(Chapter 2 of Hibernate In Action)
摘要: 阅读全文

posted @ 2010-06-12 01:37 Ray Z 阅读(115) 评论(0) 推荐(0)

面向应用的持久层设计(深入浅出Hibernate第一章)
摘要:Data Accessor Object(DAO) = Data + Accessor + Object 阅读全文

posted @ 2010-06-10 23:35 Ray Z 阅读(162) 评论(0) 推荐(0)

Writing and Mapping classes(Chapter 3 of NHibernate In Action)
摘要:Mapping class inheritanceA simple strategy for mapping classes to database tables might be “one table for every class.” This approachsounds simple, and it works well until you encounter in... 阅读全文

posted @ 2009-11-05 19:38 Ray Z 阅读(222) 评论(0) 推荐(0)

Hello NHibernate(Chapter 2 of NHibernate in action)
摘要:[代码][代码][代码][代码][代码] 阅读全文

posted @ 2009-10-26 22:55 Ray Z 阅读(243) 评论(0) 推荐(0)

导航