Java Hibernate Cookbook
暫譯: Java Hibernate 食譜
Yogesh Prajapati, Vishal Ranapariya
- 出版商: Packt Publishing
- 出版日期: 2015-09-18
- 售價: $2,010
- 貴賓價: 9.5 折 $1,910
- 語言: 英文
- 頁數: 250
- 裝訂: Paperback
- ISBN: 1784391905
- ISBN-13: 9781784391904
-
相關分類:
Java 相關技術、Java 程式語言
海外代購書籍(需單獨結帳)
商品描述
Over 50 recipes to help you build dynamic and powerful real-time Java Hibernate applications
About This Book
- Learn to associate JDBC and Hibernate with object persistence
- Manage association mappings, implement basic annotations and learn caching
- Get to grips with Hibernate fundamentals from installation to developing a business application with this step-by-step guide
Who This Book Is For
This is book for Java developers who now want to learn Hibernate. Good knowledge and understanding of Java is preferred to allow efficient programming of the core elements and applications; it would be helpful if readers are familiar with the basics of SQL.
What You Will Learn
- Set up and install Hibernate on your system and explore different ways in which Hibernate can be configured
- Learn the basic concepts and fundamentals of Java Hibernate
- Define mappings without a use of XML file using Annotations
- Persist collection elements such as list, map, set and array
- Explore the various mapping options and learn to work with Hibernate associations
- Understand advanced Hibernate concepts such as caching and inheritance
- Develop an engaging and robust real-world hibernate application based on a common business scenario
- Integrate Hibernate with other frameworks to develop robust enterprise applications
In Detail
Hibernate is a database independent technology, so the same code will work for all databases. It helps a Java developer write a query by mapping Java bean to database tables and help create tuned queries that boost performance. Even with limited SQL knowledge one can easily perform database operations. This makes the development faster and more accurate than JDBC. Hibernate supports useful features like connection pooling, caching, and inheritance etc.
This book will provide a useful hands-on guide to Hibernate to accomplish the development of a real-time Hibernate application.
We will start with the basics of Hibernate, which include setting up Hibernate – the pre-requisites and multiple ways of configuring Hibernate using Java. We will then dive deep into the fundamentals of Hibernate such as SessionFactory, session, criteria, working with objects and criteria. This will help a developer have a better understanding of how Hibernate works and what needs to be done to run a Hibernate application. Moving on, we will learn how to work with annotations, associations and collections. In the final chapters, we will see explore querying, advanced Hibernate concepts and integration with other frameworks.
Style and approach
This book is a practical guide filled with carefully organized step-by-step instructions. All recipes are arranged in an easy-to understand and clear manner allowing you to apply the solutions to other situations.
商品描述(中文翻譯)
超過 50 個範例幫助您建立動態且強大的即時 Java Hibernate 應用程式
本書介紹
- 學習將 JDBC 和 Hibernate 與物件持久化關聯
- 管理關聯映射,實作基本註解並學習快取
- 從安裝到開發商業應用程式,透過這本逐步指南掌握 Hibernate 基礎知識
本書適合誰閱讀
本書適合希望學習 Hibernate 的 Java 開發人員。建議具備良好的 Java 知識和理解,以便有效編寫核心元素和應用程式;如果讀者熟悉 SQL 的基本概念將會更有幫助。
您將學到什麼
- 在系統上設置和安裝 Hibernate,並探索 Hibernate 的不同配置方式
- 學習 Java Hibernate 的基本概念和基礎知識
- 使用註解定義映射,而不使用 XML 檔案
- 持久化集合元素,如列表、映射、集合和陣列
- 探索各種映射選項並學習如何處理 Hibernate 關聯
- 理解高級 Hibernate 概念,如快取和繼承
- 根據常見商業情境開發一個引人入勝且穩健的實際 Hibernate 應用程式
- 將 Hibernate 與其他框架整合以開發穩健的企業應用程式
詳細內容
Hibernate 是一種與資料庫無關的技術,因此相同的程式碼可以在所有資料庫上運行。它幫助 Java 開發人員通過將 Java bean 映射到資料庫表來編寫查詢,並幫助創建調整過的查詢以提升性能。即使 SQL 知識有限,也能輕鬆執行資料庫操作。這使得開發比 JDBC 更快且更準確。Hibernate 支援連接池、快取和繼承等有用功能。
本書將提供一個實用的 Hibernate 實作指南,以完成即時 Hibernate 應用程式的開發。
我們將從 Hibernate 的基礎開始,包括設置 Hibernate 的前置條件和使用 Java 配置 Hibernate 的多種方式。然後,我們將深入探討 Hibernate 的基本概念,如 SessionFactory、session、criteria、物件和 criteria 的操作。這將幫助開發人員更好地理解 Hibernate 的運作方式以及運行 Hibernate 應用程式所需的步驟。接下來,我們將學習如何處理註解、關聯和集合。在最後幾章中,我們將探索查詢、高級 Hibernate 概念以及與其他框架的整合。
風格與方法
本書是一本實用指南,充滿精心組織的逐步指導。所有範例都以易於理解和清晰的方式排列,讓您能將解決方案應用於其他情境。