gogogo
Syndetics cover image
Image from Syndetics

Harnessing Hibernate

By: Material type: TextTextPublication details: O'ReillyISBN:
  • 0596517726
Holdings
Item type Current library Call number Copy number Status Date due Barcode
Standard Loan Thurles Library Main Collection 005.133 ELL (Browse shelf(Opens below)) 1 Available R16267JKRC

Enhanced descriptions from Syndetics:

Harnessing Hibernate is an ideal introduction to the popular framework that lets Java developers work with information from a relational database easily and efficiently. Databases are a very different world than Java objects, and they often involve people with different skills and specializations. With Hibernate, bridging these two worlds is significantly easier, and with this book, you can get up to speed with Hibernate quickly.



Rather than present you with another reference, Harnessing Hibernate lets you explore the system, from download and configuration through a series of projects that demonstrate how to accomplish a variety of practical goals. The new edition of this concise guide walks you through Hibernate's primary features, which include mapping from Java classes to database tables, and from Java data types to SQL data types. You will also learn about Hibernate's data query and retrieval facilities, and much more.



By reading and following along with the examples, you can get your own Hibernate environment set up quickly and start using it for real-world tasks right away. Harnessing Hibernate teaches you how to:



Perform Object/Relational mapping Work with persistent data from Java code Work with groups and relationships between objects Extend Hibernate's rich type support for your own needs Simplify query creation using criteria and examples Use the Hibernate Query Language (HQL) and understand how it differs from SQL Use Hibernate in conjunction with Spring Use Hibernate in conjunction with other packages, such as the Stripes web framework and the Eclipse IDE

Once you're past the first few chapters, you can jump to topics that you find particularly interesting or relevant. All background material and explanations of how Hibernate works and why is in the service of a focused task. Source code can be downloaded from the book's website.



If using SQL is an uncomfortable chore, Harnessing Hibernate offers you an effective and trouble-free method for working with the information you store in your applications.

Table of contents provided by Syndetics

  • Preface (p. ix)
  • Part I Hibernate in a Hurry
  • 1 Installation and Setup (p. 3)
  • Getting an Ant Distribution (p. 3)
  • Check Your Java Version (p. 5)
  • Getting the Maven Tasks for Ant (p. 6)
  • Installing the Maven Tasks for Ant (p. 8)
  • Using the HSQLDB Database Engine (p. 8)
  • Using Hibernate Core (p. 10)
  • Setting Up a Project Hierarchy (p. 12)
  • 2 Introduction to Mapping (p. 25)
  • Writing a Mapping Document (p. 26)
  • Generating Some Class (p. 29)
  • Cooking Up a Schema (p. 34)
  • 3 Harnessing Hibernate (p. 43)
  • Configuring Hibernate (p. 43)
  • Creating Persistent Objects (p. 46)
  • Finding Persistent Objects (p. 56)
  • Better Ways to Build Queries (p. 60)
  • 4 Collections and Associations (p. 63)
  • Mapping Collections (p. 63)
  • Persisting Collections (p. 71)
  • Retrieving Collections (p. 77)
  • Using Bidirectional Associations (p. 80)
  • Working with Simpler Collections (p. 84)
  • 5 Richer Associations (p. 87)
  • Eager and Lazy Associations (p. 87)
  • Ordered Collections (p. 90)
  • Augmenting Associations in Collections (p. 92)
  • Lifecycle Associations (p. 104)
  • Reflexive Associations (p. 107)
  • 6 Custom Value Types (p. 111)
  • Defining a User Type (p. 111)
  • Defining a Persistent Enumerated Type (p. 112)
  • Using a Custom Type Mapping (p. 114)
  • Working with Persistent Enumerations (p. 119)
  • Building a Composite User Type (p. 126)
  • 7 The Annotations Alternative (p. 139)
  • Hibernate Annotations (p. 139)
  • Annotating Model Objects (p. 143)
  • An Alternate Approach (p. 158)
  • 8 Criteria Queries (p. 163)
  • Using Simple Criteria (p. 164)
  • Compounding Criteria (p. 167)
  • Projection and Aggregation with Criteria (p. 168)
  • Applying Criteria to Associations (p. 173)
  • Querying by Example (p. 175)
  • Property-Oriented Criteria Factories (p. 177)
  • 9 A Look at HQL (p. 179)
  • Writing HQL Queries (p. 179)
  • Selecting Properties and Pieces (p. 184)
  • Sorting (p. 188)
  • Working with Aggregate Values (p. 189)
  • Writing Native SQL Queries (p. 192)
  • Part II Playing Nice with Others
  • 10 Connecting Hibernate to MySQL (p. 199)
  • Setting Up a MySQL Database (p. 199)
  • Connecting to MySQL (p. 200)
  • Trying It Out (p. 201)
  • Looking at the Data (p. 205)
  • 11 Hibernate and Eclipse: Really Using the Hibernate Tools (p. 209)
  • Installing the Hibernate Tools in Eclipse (p. 209)
  • Creating a Hibernate Console Configuration (p. 217)
  • More Editing Support (p. 219)
  • The Hibernate Console Perspective (p. 222)
  • Code Generation (p. 230)
  • Mapping Diagrams (p. 236)
  • 12 Maven in More Depth (p. 239)
  • What Is Maven? (p. 239)
  • Installing Maven (p. 242)
  • Building, Testing, and Running a Project (p. 243)
  • Generating IDE Project Files using Maven (p. 245)
  • Generating Reports with Maven (p. 247)
  • A Maven Project Object Model (p. 250)
  • The Maven Build Lifecycle (p. 260)
  • Using the Maven Hibernate3 Plug-in (p. 262)
  • Becoming a Maven Maven (p. 266)
  • 13 Put a Spring in your Step: Hibernate with Spring (p. 269)
  • What Is Spring? (p. 269)
  • Writing a Data Access Object (p. 272)
  • Creating an Application Context (p. 281)
  • Putting It All Together (p. 285)
  • 14 The Finishing Touch: Stripes with Spring and Hibernate (p. 297)
  • Earn Your Stripes (p. 298)
  • Prepare Tomcat (p. 299)
  • Create the Web Application (p. 299)
  • Add Stripes (p. 304)
  • Dealing with Associations (p. 317)
  • A Hibernate Types (p. 327)
  • B The Criteria API (p. 333)
  • C Hibernate SQL Dialects (p. 341)
  • D Spring Transaction Support (p. 343)
  • E Where to Go Next (p. 347)
  • Index (p. 351)

Author notes provided by Syndetics

James Elliott is a senior software engineer at Berbee with a passion for building high-quality Java tools and frameworks
Tim O'Brien, a professional programmer in the Chicago area, is active in the Jakarta Commons
Ryan Fowler is a software engineer at Berbee in Madison, Wisconsin

Powered by Koha