- Mastering Hibernate
- Ramin Rad
- 162字
- 2021-07-16 10:54:40
Chapter 1. Entity and Session
In this chapter, we will take an in-depth look at sessions and entities and their lifecycles. It is important to understand the concepts of session and entity when we talk about design concepts, such as session-per-request, session-per-conversation, stateless sessions, and contextual sessions, and discuss the various states of an entity. After all, the only way to master anything is by paying attention to the details. We also explore entities beyond their JPA characteristics and look at Hibernate entities to see the benefits of one over the other. Furthermore, we discuss proxy objects and how they are used.
In this chapter, we will cover the following topics:
- Why this book?
- Quick Hibernate
- Hibernate session:
- Session internals
- Contextual sessions
- Sessions per request, per conversation, and per operation
- Stateless sessions
- Hibernate entities:
- Entity lifecycle
- Types of entities
- Identity crisis
- Beyond JPA
- Proxy objects
- Batch processing:
- Manual batch management
- Setting the size of the batch
- Using a stateless session
推薦閱讀
- Practical Data Analysis Cookbook
- LabVIEW 2018 虛擬儀器程序設計
- Visual C++串口通信開發入門與編程實踐
- Java軟件開發基礎
- 名師講壇:Spring實戰開發(Redis+SpringDataJPA+SpringMVC+SpringSecurity)
- Hands-On Natural Language Processing with Python
- Visual FoxPro程序設計習題集及實驗指導(第四版)
- Getting Started with Python and Raspberry Pi
- 基于GPU加速的計算機視覺編程:使用OpenCV和CUDA實時處理復雜圖像數據
- Python預測分析實戰
- 絕密原型檔案:看看專業產品經理的原型是什么樣
- 編程風格:程序設計與系統構建的藝術(原書第2版)
- 亮劍C#項目開發案例導航
- 深入解析Java虛擬機HotSpot
- Building RESTful Web Services with PHP 7