官术网_书友最值得收藏!

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
主站蜘蛛池模板: 镇安县| 随州市| 德格县| 高要市| 西华县| 德保县| 高陵县| 铁岭市| 英吉沙县| 五寨县| 通江县| 抚州市| 翼城县| 师宗县| 西丰县| 若尔盖县| 泸州市| 林口县| 东乡族自治县| 双牌县| 隆子县| 乌拉特中旗| 特克斯县| 太康县| 平果县| 南郑县| 太仓市| 长汀县| 扶余县| 虹口区| 太和县| 闽清县| 嘉兴市| 芦溪县| 青铜峡市| 灵台县| 濮阳县| 乌拉特后旗| 菏泽市| 修武县| 景东|