- 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
推薦閱讀
- The Complete Rust Programming Reference Guide
- Dependency Injection in .NET Core 2.0
- Building Minecraft Server Modifications
- Scala謎題
- Web程序設計(第二版)
- Python編程與幾何圖形
- JavaScript:Moving to ES2015
- 機器學習微積分一本通(Python版)
- Lift Application Development Cookbook
- Visual Basic程序設計(第三版)
- Learning Cocos2d-JS Game Development
- HTML5 WebSocket權威指南
- HTML5+CSS3+jQuery Mobile+Bootstrap開發APP從入門到精通(視頻教學版)
- 微信小程序開發圖解案例教程:附精講視頻(第3版)
- 數據分析從入門到進階