Harnessing Hibernate (O'Reilly)
Date de publication : 23/07/2008 , Date de mise à jour : 19/09/2008
Par
Pierre Chauvin (Site Developpez.com) (Blog)
Présentation du livre "Harnessing Hibernate" (O'Reilly) de James Elliott, Timothy M. O'Brien, Ryan Fowler.
1. Informations
2. Présentation de l'éditeur
3. Critique
4. Table des matières
5. Commandez
6. Liens
1. Informations
Auteur(s):
James Elliott, Ryan Fowler, Tom O'Brien
Editeur:
O'Reilly Media
Version:
13 Mai 2008
Nombre de pages:
380 (Anglais)
Prix approximatif:
28,42 Euros
Commander le livre:
Amazon
2. Présentation de l'éditeur
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.
3. Critique
Habitué à d'autres formes de persistence et ORM avec le langage Java, Harnessing Hibernate est ma première lecture sur
Hibernate. Les chapitres de ce livre gravitent autour d'un projet
central (le traditionnel outil de gestion de collection de musique), enrichi au fur et à mesure par les fonctionnalités
d'Hibernate. Installation des outils (Maven, Ant), mappings et requêtes simples, requêtes Criteria, annotations,
intégration avec d'autres bases de données (HSQLDB, MySQL) et outils (Spring, Stripes, IDE Eclipse) :
une vision assez globale est donnée et vous serez en mesure de construire vos premiers projets avec une couche de persistence reposant sur Hibernate, et en exploitant les primitives simples.
Néanmoins je trouve que l'auteur consacre beaucoup trop de temps aux outils annexes comme Maven (le chapitre 12!), qui
nécessite à lui seul un livre, et j'aurais préféré qu'il passe davantage de temps sur des mappings plus complexes, ou
encore à la gestion de cache, la gestion des sessions Hibernate. Il demeure bien construit pour un lecteur débutant,
mais aura du mal à satisfaire celui-ci dés l'apparition des premiers besoins atypiques et plus complexes. Utile, mais
loin d'être indispensable.
4. Table des matières
Chapitre 1. Installation and Setup
Chapitre 2. Introduction to Mapping
Chapitre 3. Harnessing Hibernate
Chapitre 4. Collections and Associations
Chapitre 5. Richer Associations
Chapitre 6. Custom Value Types
Chapitre 7. The Annotation Alternative
Chapitre 8. Criteria Queries
Chapitre 9. A Look at HQL
Chapitre 10. Connecting Hibernate to MySQL
Chapitre 11. Hibernate and Eclipse: Really Using
Chapitre 12. Maven in More Depth
Chapitre 13. Put a Spring in your Step: Hibernate with Spring
Chapitre 14. The finishing Touch: Stripes with Spring and Hibernate
5. Commandez
6. Liens


Copyright © 2007-2009 Pierre Chauvin. Aucune reproduction, même partielle, ne peut être faite
de ce site et de l'ensemble de son contenu : textes, documents, images, etc
sans l'autorisation expresse de l'auteur.
Sinon vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E
de dommages et intérêts.
Cette page est déposée à la
SACD.