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

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
主站蜘蛛池模板: 佛冈县| 宜州市| 六安市| 澜沧| 新沂市| 安达市| 万山特区| 通海县| 达州市| 遵化市| 吴忠市| 霍邱县| 玉山县| 舟曲县| 双城市| 界首市| 北海市| 金阳县| 云安县| 电白县| 宜黄县| 咸宁市| 唐河县| 甘孜县| 沙河市| 安徽省| 贵州省| 保康县| 永和县| 图木舒克市| 靖江市| 鹰潭市| 榆社县| 彭山县| 静安区| 蓬溪县| 佳木斯市| 新和县| 临湘市| 临潭县| 分宜县|