|
Part 1: Hibernate in a HurryOur first goal is to get up to speed with Hibernate as quickly as possible. Most of the chapters in this part are updated versions of content from Hibernate: A Developer's Notebook (O'Reilly), reflecting the major changes that came about with Hibernate 3. The sample code now works with the latest versions of the tools we rely on to provide an easy yet realistic environment for working with Hibernate. There is also a new chapter covering the ability to use Java 5 annotations, rather than XML mapping files, to configure Hibernate mappings. Getting started and following along with the examples is even easier in this new version of the book because we've adopted Maven to help download many of the tools and libraries. As we hope you will see, there's no excuse to avoid diving in and trying this stuff yourself! Once you're comfortable with the fundamentals of Hibernate, Part 2 will demonstrate how to tie Hibernate into some other environments to make each more powerful than they are on their own. Part 2: Playing Nice with Others Our examples so far have focused on a very narrow set of tools beyond Hibernate: Ant, the Maven Ant Tasks, the Hibernate Tools, and HSQLDB as our relational database. This has served us very well in providing a platform for getting quickly to the "meat" of Hibernate and focusing on exploring its features. In the real world, though, you'll often want to use Hibernate in different ways and in conjunction with other useful packages. Luckily, that's very easy! So let's change gears and start introducing some new faces, like the popular MySQL database and the Eclipse IDE. Then we'll discuss Maven in more depth than we could when it was just a stepping stone towards getting the examples working, showing you ways it can help if you adopt more than the Ant Tasks. Finally, we highlight Spring and Stripes, two very useful projects that pair nicely with Hibernate. Chapter 1. Installation and Setup Chapter 2. Introduction to Mapping Chapter 3. Harnessing Hibernate Chapter 4. Collections and Associations Chapter 5. Richer Associations Chapter 6. Custom Value Types Chapter 7. The Annotations Alternative Chapter 8. Criteria Queries Chapter 9. A Look at HQL Chapter 10. Connecting Hibernate to MySQL Chapter 11. Hibernate and Eclipse: Really Using the Hibernate Tools Chapter 12. Maven in More Depth Chapter 13. Put a Spring in your Step: Hibernate with Spring Chapter 14. The Finishing Touch: Stripes with Spring and Hibernate Download free ebooks on java:Harnessing Hibernate - A Step-by-Step Guide to JAVA Persistence
|
Free programing ebooks
Part 1: Hibernate in a Hurry