你是否喜爱编写软件程序,但却讨厌数据库编码?《Hibernate:程序高手秘笈》正是你所需要的。数据库专家或许喜欢摆弄SQL,但你不必,应用程序的其余部分才是真正有趣的部分。并且,数据库专家甚至担心单调乏味的应用需要把它们的SQL放入一个Java程序。《Hibernate:程序高手秘笈》展示了如何用Hibernate来自动化配置:写一些Java对象和简单的配置文件,Hibernate将使这些对象和数据库间的所有交互自动化。你甚至不必知道数据库在哪,并且,通过更改一个配置文件中的几个语句,就能简单的从一个数据库切换到另一个数据库。 \r\n 《Hibernate程序高手秘笈》带你遍历Hibernate的使用,从安装和配置到复杂的关联和复合类型。书中有两章探究如何实现复杂的查询:通过一个纯的Java API,或者用一个SQL激发的但是面向对象的查询语言来表达。使用Hibernate的最大惊喜之一是:对于许多常见的真实世界的应用场景,根本不需要一个精确的查询,但别因为这给你带来困惑。如果你已意图给自己的应用加个数据库,不要拖延,这比过去的更有趣,《Hibernate:程序高手秘笈》会告诉你为什么。\r\n
Preface\r\nChapter 1.Installation and Setup\r\n Getting an Ant Distribution\r\n Getting the HSQLDB Database Engine\r\n Getting Hibemate\r\n Setting Up a Project Hierarchy\r\nChapter 2.Introduction to Mapping\r\n Writing a Mapping Document\r\n Generating Some Class\r\n Cooking Up a Schema\r\n Connecting Hibernate to MySQL\r\nChapter 3.Harnessing Hibernate\r\n Creating Persistent Objects\r\n Finding Persistent Objects\r\n Better Ways to Build Queries\r\nChapter 4.Collections and Associations\r\n Mapping Collections\r\n Persisting Collections\r\n Retrieving Collections\r\n Using Bidirectional Associations\r\n working with Simple Collections\r\nChapter 5.Richer Associations\r\n Using Lazy Associations\r\n Ordered Collections\r\n Augmenting Associations in Collections\r\n Lifecycle Associations\r\n Reflexive Associations\r\nChapter 6.Persistennt Enumerated Types\r\n Defining a Persistent Enumerated Type\r\n Working with Persistent Enumerations\r\nChapter 7.Custom Value Types\r\n Defining a User Type\r\n Using a custom Type Mapping \r\n Building a Composite User Type\r\nChapter 8.Criteria Queries\r\n Using Simple Criteria\r\n Compounding Criteria\r\n Applying Criteria to Associations\r\n Querying by Example\r\nChapter 9.A Look at HQL\r\n Writing HQL Queries\r\n Selecting Properties and Pieces\r\n Sorting\r\n Working with Aggregate Values\r\n Writing Native SQL Queries\r\nAppendix A.Hibernate Types\r\nAppendix B.Standard Criteria\r\nAppendix C.Hibernate SQL Dialects\r\nIndex\r\n
无封面