Hibernate:程序高手秘笈(影印版)
出版時間:2005年11月
頁數(shù):192
你是否喜愛編寫軟件程序但卻討厭數(shù)據(jù)庫編碼?《Hibernate程序高手秘笈》正是你所需要的。數(shù)據(jù)庫專家或許喜歡擺弄SQL,但你不必,應(yīng)用程序的其余部分才是真正有趣的部分。甚至數(shù)據(jù)庫專家也擔(dān)心把SQL放入Java程序中的復(fù)雜性和困難性。《Hibernate程序高手秘笈》展示了如何用Hibernate來自動化配置:寫一些Java對象和簡單的配置文件,Hibernate將使這些對象和數(shù)據(jù)庫間的所有交互自動化。你甚至不必知道數(shù)據(jù)庫在哪,通過更改一個配置文件中的幾個語句,就能簡單地從一個數(shù)據(jù)庫切換到另一個數(shù)據(jù)庫。
《Hibernate程序高手秘笈》帶你遍歷Hibernate的使用,從安裝和配置到復(fù)雜的關(guān)聯(lián)和復(fù)合類型。書中有兩章探究如何實現(xiàn)復(fù)雜的查詢:通過一個純Java API,或者用一個SQL激發(fā)的但是面向?qū)ο蟮牟樵冋Z言來表達(dá)。使用Hibernate的最大驚喜之一是:對于許多常見的真實世界的應(yīng)用場景,根本不需要一個精確的查詢,但別因為這給你帶來困惑。如果你已意圖給自己的應(yīng)用程序加個數(shù)據(jù)庫,不要拖延,這比過去的更有趣,《Hibernate程序高手秘笈》會告訴你為什么。
我坐在飛機(jī)里讀完了《Hibernate程序高手秘笈》。很難找到一本關(guān)于一個新的Java技術(shù)的書能在一次國內(nèi)飛行中看完。這本高效、簡潔地處理對象關(guān)系映射的筆記做到了。而且,Hibernate給人的印象更加深刻。許多這類書需放在托運行李中。你坐頭等艙旅行時,隨身帶著這本書吧。 ——Mike Clark
一個簡單統(tǒng)一的結(jié)構(gòu)值得用一本簡單的書介紹,這本書做到了。書中的例子生動易懂,但是,足夠復(fù)雜,可在一個真實世界的環(huán)境中演示Hibernate。我是該書的一個新書迷。
——Bruce Tate
本書榮獲2005年第十五屆Jolt技術(shù)類圖書效能大獎。
- Preface
- Chapter 1. Installation and Setup
- Getting an Ant Distribution
- Getting the HSQLDB Database Engine
- Getting Hibernate
- Setting Up a Project Hierarchy
- Chapter 2. Introduction to Mapping
- Writing a Mapping Document
- Generating Some Class
- Cooking Up a Schema
- Connecting Hibernate to MySQL
- Chapter 3. Harnessing Hibernate
- Creating Persistent Objects
- Finding Persistent Objects
- Better Ways to Build Queries
- Chapter 4. Collections and Associations
- Mapping Collections
- Persisting Collections
- Retrieving Collections
- Using Bidirectional Associations
- Working with Simple Collections
- Chapter 5. Richer Associations
- Using Lazy Associations
- Ordered Collections
- Augmenting Associations in Collections
- Lifecycle Associations
- Reflexive Associations
- Chapter 6. Persistent Enumerated Types
- Defining a Persistent Enumerated Type
- Working with Persistent Enumerations
- Chapter 7. Custom Value Types
- Defining a User Type
- Using a Custom Type Mapping
- Building a Composite User Type
- Chapter 8. Criteria Queries
- Using Simple Criteria
- Compounding Criteria
- Applying Criteria to Associations
- Querying by Example
- Chapter 9. A Look at HQL
- Writing HQL Queries
- Selecting Properties and Pieces
- Sorting
- Working with Aggregate Values
- Writing Native SQL Queries
- Appendix A. Hibernate Types
- Appendix B. Standard Criteria
- Appendix C. Hibernate SQL Dialects
- Index
書名:Hibernate:程序高手秘笈(影印版)
國內(nèi)出版社:東南大學(xué)出版社
出版時間:2005年11月
頁數(shù):192
書號:7-5641-0166-0
原版書出版商:O'Reilly Media
James Elliott
James Elliott是Berbee的高級軟件工程師,擁有十幾年專業(yè)的系統(tǒng)開發(fā)經(jīng)驗。早在十多年前他就開始對計算機(jī)著迷,并在工作環(huán)境比較簡陋的情況下開始設(shè)計各種對象。他熱衷于設(shè)計高質(zhì)量的工具和框架來簡化其他開發(fā)人員的工作,并喜歡使用Java來達(dá)成此目的。Jim的童年可以說是在環(huán)球旅行中度過。此后,他在紐約的Rensselaer理工大學(xué)獲得計算機(jī)科學(xué)學(xué)士學(xué)位,在Wisconsin大學(xué)Madison分校獲得碩士學(xué)位。他隨后又在位于Murray Hill的貝爾實驗室(C和UNIX操作系統(tǒng)的誕生地)工作。雖然他在通過博士資格考試之后迫于現(xiàn)實壓力而選擇就業(yè),卻在Madison與妻子Joe Buberger和兩只淘氣的小貓一起過著快樂的生活。
The Developer's Notebook series is modeled on the tradition of
labora-tory notebooks. Laboratory notebooks are an invaluable tool for
researchers and their successors.
The purpose of a laboratory notebook is to facilitate the recording of
data and conclusions as the work is being conducted, creating a faithful
and immediate history. The notebook begins with a title page that
includes the owner's name and the subject of research. The pages of the
notebook should be numbered and prefaced with a table of
contents. Entries must be clear, easy to read, and accurately dated;
they should use simple, direct language to indicate the name of the
experiment and the steps taken. Calculations are written out carefully
and relevant thoughts and ideas recorded. Each experiment is intro-duced
and summarized as it is added to the notebook. The goal is to
produce comprehensive, clearly organized notes that can be used as a
reference. Careful documentation creates a valuable record and provides
a practical guide for future developers.