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. The EntityManagerFactory is the JPA equivalent of a SessionFactory and basically those two converge into the same SessionFactory implementation.

A SessionFactory is very expensive to create, so, for any given database, the application should have only one associated SessionFactory. The SessionFactory maintains services that Hibernate uses across all Session(s) such as second level caches, connection pools, transaction system integrations, etc.

线程安全

以上是关于Hibernate ORM 5.1 User Guide的主要内容,如果未能解决你的问题,请参考以下文章

当前不支持公式映射 - Hibernate ORM Envers

Hibernate

hibernate通过注解实现实体和表的映射

Hibernate数据Session对象的常规操作收集

Hibernate 中出现 users is not mapped 问题

无法在 Symfony 5.1 中安装 orm-pack