- 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
推薦閱讀
- 計算思維與算法入門
- INSTANT FreeMarker Starter
- Rake Task Management Essentials
- 數據結構(Java語言描述)
- Programming ArcGIS 10.1 with Python Cookbook
- CouchDB and PHP Web Development Beginner’s Guide
- 軟件測試技術指南
- 軟件品質之完美管理:實戰經典
- Windows Phone 7.5:Building Location-aware Applications
- Babylon.js Essentials
- 智能搜索和推薦系統:原理、算法與應用
- 案例式C語言程序設計實驗指導
- Java 從入門到項目實踐(超值版)
- Python編程快速上手2
- Flutter之旅