码迷,mamicode.com
首页 > Web开发 > 详细

Hibernate ORM 5.1 User Guide

时间:2017-10-18 11:49:46      阅读:279      评论:0      收藏:0      [点我收藏+]

标签:mapping   etc   oss   技术   cto   ima   ica   asi   evel   

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

标签:mapping   etc   oss   技术   cto   ima   ica   asi   evel   

原文地址:http://www.cnblogs.com/rocker-pg/p/7685816.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!