Vous voulez voir cette page en français ? Cliquez ici.


or
Sign in to turn on 1-Click ordering.
More Buying Choices
Have one to sell? Sell yours here
Hibernate: A J2EE™ Developer's Guide
 
See larger image
 

Hibernate: A J2EE™ Developer's Guide [Paperback]

Will Iverson

List Price: CDN$ 46.99
Price: CDN$ 32.27 & this item ships for FREE with Super Saver Shipping. Details
You Save: CDN$ 14.72 (31%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Temporarily out of stock.
Order now and we'll deliver when available. We'll e-mail you with an estimated delivery date as soon as we have more information. Your account will only be charged when we ship the item.
Ships from and sold by Amazon.ca. Gift-wrap available.

Product Details


Product Description

Book Description

Hibernate is a popular open source object/relational persistence and querysystem and an alternative to Enterprise Java Beans. Compared to EJB,Hibernate is less complex, more easily portable and more powerful for linkingJava with traditional relational databases. Hibernate supports many relationaldatabases including: DB2, Informix, MySQL, Oracle, SAP DB, SQL Server,Sybase, and is downloaded over 23,000 times a month on average in 2004. Thisbook provides J2EE developers with a pratical hands-on guide to working withHibernate and their existing databases. Through numerous code examples andcase studies, the author helps reinforce what Hibernate is and how to use it.

From the Inside Flap

Hibernate: A J2EE Developer's GuideHibernate: A J2EE Developer's GuidePreface

I got into Hibernate because I'm lazy. Specifically, I got tired of writing my own systems to bridge my Java applications and relational databases. I write both Swing and server-based applications; I can't assume (nor do I enjoy) the complexity of EJB container-managed persistence. I hate writing SQL when all I really want to do is write Java code. I really don't like writing endless pages of mindless code, loading my JDBC results into Java objects and back.

Simply put, Hibernate solves all of these problems for me, and it does so in a fast, flexible manner. I can use it with Swing, JSP, or as an EJB BMP solution. I can test my code outside of a container. I can even use it to manage my database schema.

Regardless of your background—whether you are a nothing-but-JDBC developer or a full EJB-level architect—you can save yourself considerable time and effort by adding Hibernate to your skill set, and in the process you can get a significant leg up on learning EJB 3.0. You can learn the principal terminology and concepts behind EJB 3.0 today, on the Java 2 (JDK 1.4) JVM you are using now.

Life is short. Spend less time writing code that bridges your database and your Java application and more time adding new features.

Required Skills

Familiarity with Java development, including object-oriented design. If you don't already know Java, this book will be quite unhelpful.

Familiarity with SQL and relational databases. There are many books on both the practical and theoretical sides of relational database design and development. The examples in this book are all done with MySQL, a free, open-source database. If you have never worked with a relational database before, you will almost certainly want to pick up an introductory text on MySQL.

Familiarity with Ant. Many books on Ant are available; if you are a Java developer and haven't already worked with Ant, you should learn.

Other skills, such as familiarity with JSP web application development, are helpful but not required. One example in Chapter 2 assumes the use of a web server such as Tomcat—all other examples can be run from the command-line.

Roadmap

This book can be loosely broken into a few basic sections. Following the introductory chapter, Chapters 2 through 4 illustrate different approaches to Hibernate development: starting from a Hibernate object/relational mapping file, starting from Java code, or starting from an existing database schema. Chapters 5 through 12 cover basic concepts and the use of persistent objects, concluding with chapters on tools, performance, and best practices. Chapter 13 discusses the future of Hibernate.

This book can be read in several ways, depending on your inclination. If you wish to start with real-world examples and then move into general usage and theory, you can more or less read the book in order. If you prefer a higher-level introduction, you may wish to start with Chapters 6 through 9 and then return to the beginning.It compares Hibernate to other forms of database access, including JDBC and a variety of other tools. It concludes with a list of required files and where to obtain them.

Chapter 2 illustrates an example of development starting with a Hibernate mapping file. The mapping file is used to generate Java and database schema files.

Chapter 3 shows how to use Hibernate when starting from a Java source file. XDoclet is used to generate the mapping file, and Hibernate is used to generate the database schema.

Chapter 4 shows how to use Middlegen in conjunction with Hibernate when starting from an existing database schema.

Chapter 5 is a reference to the Hibernate mapping file format. While few readers will want to read this chapter from start to finish, this reference will hopefully prove invaluable on a day-to-day basis when using Hibernate.

Chapter 6 contains information on the general use of Hibernate, including basic operations such as creating, finding, refreshing, updating, and deleting objects.

Chapter 7 explains how Hibernate handles both class and database relationship concepts.

Chapter 8 discusses Hibernate's two main query mechanisms, HQL and Criteria, and also shows how native SQL can be integrated.

Chapter 9 covers the various aspects of a Hibernate transaction, illustrating both session and database transaction concepts.

Chapter 10 shows tools for identifying potential Hibernate performance issues.

Chapter 11 discusses how Hibernate can be used to manage an application's schema.

Chapter 12 covers various Hibernate best practices.

Chapter 13 discusses future directions for Hibernate, and also covers potential similarities with EJB 3.0.

© Copyright Pearson Education. All rights reserved.


Tag this product

 (What's this?)
Think of a tag as a keyword or label you consider is strongly related to this product.
Tags will help all customers organize and find favorite items.
Your tags: Add your first tag
 

Customer Reviews

There are no customer reviews yet on Amazon.ca
5 star:    (0)
4 star:    (0)
3 star:    (0)
2 star:    (0)
1 star:    (0)
 
 
 
Share your experience with this product with others
Create your own review
Most Helpful Customer Reviews on Amazon.com (beta)
Amazon.com: 2.6 out of 5 stars (9 customer reviews)

11 of 13 people found the following review helpful
3.0 out of 5 stars Meh. It's ok, Mar 11 2005
By Patrick Carroll "Winebibber. Java/JEE Develo... - Published on Amazon.com
Amazon Verified Purchase(What's this?)
This review is from: Hibernate: A J2EE™ Developer's Guide (Paperback)
There are better books about Hibernate.

The Manning "Hibernate in Action" book is the standard for Hibernate coverage, while the O'Reilly "Hibernate, A Developer's Notebook" is a good quick-and-dirty introduction.

This book is ok - some decent third-party tools ar mentioned, but reads like a heavily-annotated API reference. (Do we really need to see the source for *every* JSP example?)

Skip the WROX "Professional Hibernate" book altogether - it's so full of typos and filler as to be worthless.

I do own all four books - you never can tell when some nugget will present itself.

7 of 8 people found the following review helpful
1.0 out of 5 stars Crap - Regurgitation of the Hibernate.org Docs, Jun 10 2005
By Richard G. Markle "Renaissance Man" - Published on Amazon.com
Amazon Verified Purchase(What's this?)
This review is from: Hibernate: A J2EE™ Developer's Guide (Paperback)
This is one of the worst introductions to any Java technology I have ever read. More of an API reference than a guide. The author shows a few open source tools for generating objects and DB schemas, then revisits all the info in the Hibernate docs and tutorial. Don't waste your money like I did.

7 of 8 people found the following review helpful
4.0 out of 5 stars A good introduction to Hibernate, Jan 18 2005
By Thomas Paul - Published on Amazon.com
This review is from: Hibernate: A J2EE™ Developer's Guide (Paperback)
Hibernate is a popular object-relational mapping (ORM) system for Java programmers. As any Java programmer who has worked with a SQL database knows, trying to link Java objects to a relational database is not a trivial exercise. Hibernate simplifies the task by providing an API and a set of tools that can generate Java classes and link seamlessly to a database.

The book starts with an introduction to Hibernate including some details on installation. The author looks at how Hibernate can generate a database schema or it can generate Java classes depending on where you are starting to build your application. XDoclet is discussed with the author pointing out some of the issues with using class annotation. After the introductory chapters, the author gives a good explanation of the details of Hibernate in the middle chapters. The last few chapters look at performance, caching, design issues and other advanced topics. Throughout the book there are many code samples that help to further explain the use of Hibernate.

I do have a few complaints about the book. Although performance is discussed, the cost of using Hibernate on performance is not. I would have liked to see some comparisons of Hibernate versus stored procedures, for example. Also, the weaknesses of an ORM are not discussed. Anyone who has worked with an ORM knows that at a certain level of complexity they start to fall apart and make an application overly complicated. It would have been nice for the author to discuss these issues and at least point towards solutions. Overall, the book serves as a well-written and clearly explained basic introduction to Hibernate.
 Go to Amazon.com to see all 9 reviews  2.6 out of 5 stars 

Listmania!

Create a Listmania! list

Look for similar items by category


Look for similar items by subject


Feedback


Amazon.ca Privacy Statement Amazon.ca Shipping Information Amazon.ca Returns & Exchanges