Mastering Hibernate
暫譯: 精通 Hibernate

Ramin Rad

  • 出版商: Packt Publishing
  • 出版日期: 2016-05-13
  • 售價: $1,470
  • 貴賓價: 9.5$1,397
  • 語言: 英文
  • 頁數: 204
  • 裝訂: Paperback
  • ISBN: 1782175334
  • ISBN-13: 9781782175339
  • 相關分類: Java 相關技術
  • 海外代購書籍(需單獨結帳)

商品描述

Key Features

  • Understand the internals of Hibernate and its architecture, and how it manages Entities, Events, Versioning, Filters, and Cache
  • Observe how Hibernate bridges the gap between object-oriented concepts and relational models
  • Discover how Hibernate can address architectural concerns such as Transaction, Database Multi-tenancy, Clustering, and Database Shards

Book Description

Hibernate has been so successful since its inception that it even influenced the Java Enterprise Edition specification in that the Java Persistence API was dramatically changed to do it the Hibernate way. Hibernate is the tool that solves the complex problem of Object Relational Mapping. It can be used in both Java Enterprise applications as well as .Net applications. Additionally, it can be used for both SQL and NoSQL data stores.

Some developers learn the basics of Hibernate and hit the ground quickly. But when demands go beyond the basics, they take a reactive approach instead of learning the fundamentals and core concepts. However, the secret to success for any good developer is knowing and understanding the tools at your disposal. It's time to learn about your tool to use it better

This book first explores the internals of Hibernate by discussing what occurs inside a Hibernate session and how Entities are managed. Then, we cover core topics such as mapping, querying, caching, and we demonstrate how to use a wide range of very useful annotations.

Additionally, you will learn how to create event listeners or interceptors utilizing the improved architecture in the latest version of Hibernate.

What you will learn

  • Understand the internals of a Hibernate session and how Entities are managed
  • Declare better mapping between entity classes and database tables
  • Manage entity associations and collections
  • Fetch data not just by entity ID, but also using HQL, Criteria Objects, Filters, and Native SQL
  • Observe the first and second level caches and find out how to manage them
  • Collect statistics and metrics data for further observation
  • Make your application work with multi-tenant databases

About the Author

Ramin Rad has been working as a software professional for the last 20 years, living in Washington DC area. He studied mathematics and computer science in the academic world, and he cares deeply for the art of software development.

He is also a musician, a guitarist, who performs regularly in the DC area and beyond. His artistic side is significant because he believes that writing software is more art than science, following the philosophy of the likes of Donald Knuth, who wrote the Art of Computer Programming series.

Currently, he is a director and a solution architect at a large international software product and services company, focusing on enterprise, mobile, and cloud-based solutions.

Table of Contents

  1. Entity and Session
  2. Advanced Mapping
  3. Working with Annotations
  4. Advanced Fetching
  5. Hibernate Cache
  6. Events, Interceptors, and Envers
  7. Metrics and Statistics
  8. Addressing Architecture
  9. EJB and Spring Context

商品描述(中文翻譯)

**主要特點**
- 了解 Hibernate 的內部運作及其架構,以及它如何管理實體、事件、版本控制、過濾器和快取
- 觀察 Hibernate 如何彌補物件導向概念與關聯模型之間的差距
- 探索 Hibernate 如何解決架構問題,例如交易、資料庫多租戶、叢集和資料庫分片

**書籍描述**
自從 Hibernate 啟用以來,它的成功使其甚至影響了 Java Enterprise Edition 規範,Java Persistence API 被大幅改變以符合 Hibernate 的方式。Hibernate 是解決物件關聯映射(Object Relational Mapping)複雜問題的工具。它可以用於 Java Enterprise 應用程式以及 .Net 應用程式。此外,它也可以用於 SQL 和 NoSQL 數據存儲。

一些開發者學習 Hibernate 的基礎後能迅速上手。但當需求超出基礎時,他們往往採取反應式的方法,而不是學習基本原理和核心概念。然而,任何優秀開發者成功的秘訣在於了解和掌握手頭的工具。是時候學習如何更好地使用你的工具了。

本書首先通過討論 Hibernate 會話內部發生的事情以及如何管理實體來探索 Hibernate 的內部運作。接著,我們涵蓋核心主題,例如映射、查詢、快取,並展示如何使用各種非常有用的註解。

此外,您將學習如何利用最新版本 Hibernate 中改進的架構來創建事件監聽器或攔截器。

**您將學到的內容**
- 了解 Hibernate 會話的內部運作及如何管理實體
- 更好地聲明實體類別與資料庫表之間的映射
- 管理實體關聯和集合
- 不僅通過實體 ID 獲取數據,還可以使用 HQL、Criteria Objects、過濾器和原生 SQL
- 觀察第一級和第二級快取,並了解如何管理它們
- 收集統計和指標數據以進行進一步觀察
- 使您的應用程式能夠與多租戶資料庫協同工作

**關於作者**
**Ramin Rad** 在過去 20 年中一直擔任軟體專業人士,居住在華盛頓特區地區。他在學術界學習數學和計算機科學,並對軟體開發的藝術深感關注。

他也是一位音樂家,吉他手,定期在華盛頓特區及其他地區演出。他的藝術面向非常重要,因為他相信編寫軟體更像是一種藝術而非科學,遵循像 Donald Knuth 這樣的哲學,他撰寫了《計算機程式設計的藝術》系列。

目前,他是一家大型國際軟體產品和服務公司的總監及解決方案架構師,專注於企業、移動和雲端解決方案。

**目錄**
1. 實體與會話
2. 進階映射
3. 使用註解
4. 進階獲取
5. Hibernate 快取
6. 事件、攔截器與 Envers
7. 指標與統計
8. 解決架構問題
9. EJB 與 Spring 上下文