Hibernate ORM 5.1 User Guide
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Hibernate ORM 5.1 User Guide相关的知识,希望对你有一定的参考价值。
1. Architecture
1.1. Overview
SessionFactory (org.hibernate.SessionFactory
)
-
A thread-safe (and immutable) representation of the mapping of the application domain model to a database. Acts as a factory for
org.hibernate.Session
instances. TheEntityManagerFactory
is the JPA equivalent of aSessionFactory
and basically those two converge into the sameSessionFactory
implementation.A
SessionFactory
is very expensive to create, so, for any given database, the application should have only one associatedSessionFactory
. TheSessionFactory
maintains services that Hibernate uses across allSession(s)
such as second level caches, connection pools, transaction system integrations, etc.线程安全
以上是关于Hibernate ORM 5.1 User Guide的主要内容,如果未能解决你的问题,请参考以下文章
当前不支持公式映射 - Hibernate ORM Envers