2008-03-07

Hibernate tips

SessionFactory (org.hibernate.SessionFactory)
A threadsafe (immutable) cache of compiled mappings for a single database. A factory for Session and a client of ConnectionProvider. Might hold an optional (second-level) cache of data that is reusable between transactions, at a process- or cluster-level.

Session (org.hibernate.Session)
A single-threaded, short-lived object representing a conversation between the application and the persistent store. Wraps a JDBC connection. Factory for Transaction. Holds a mandatory (first-level) cache of persistent objects, used when navigating the object graph or looking up objects by identifier.
评论
发表评论

您还没有登录,请登录后发表评论

zjlovezj
搜索本博客
我的相册
93ef4071-371d-3885-b49a-2f1261dcf605-thumb
userguide.JPG
共 1 张
最近加入圈子
存档
最新评论