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

  • 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
主站蜘蛛池模板: 辽阳市| 册亨县| 平罗县| 于都县| 仁寿县| 酒泉市| 中西区| 象山县| 洮南市| 衡阳县| 旬阳县| 洞头县| 商南县| 涞源县| 和田县| 乌拉特中旗| 铁岭市| 宿迁市| 开江县| 西乌珠穆沁旗| 凌海市| 通海县| 陆丰市| 正定县| 汉川市| 应城市| 永吉县| 淄博市| 安新县| 巴林左旗| 嘉兴市| 井研县| 屏南县| 永登县| 洱源县| 武平县| 望谟县| 文山县| 衡东县| 小金县| 四子王旗|