This book really got me started on Hibernate. Before I bought this book, I bought Java Persistence with Hibernate book. Soon, I realized that Java Persistence with Hibernate book was not a good introductory and tutorial book. So I decided to try the Hibernate Made Easy by Cameron. After reading Hibernate Made Easy, I have a good understanding of Hibernate and I am ready to move on to more advanced topics. I gave five stars to this book for the following reasons. 1. The book was written in simple, clear and concise manner. It is easy to understand and absorb. 2. The code examples in the book works. 3. The book uses a simple development and deployment environment so that I did not have to download a tons of software to get the examples working. 4. The examples use mySQL database instead of HSQLDB like in other Hibernate books. So it is more practical. 5. This book is not just about learning Hibernate. It is also about how to apply this technology properly. The author included tutorials on how to design the persistent layer using Data Access Object and Factory design patterns. 6. This book has web application examples using JSP and Hibernate running on Tomcat. These examples are very simple yet very poweful. They get to the point. 7. Finally, about the author. Cameron loves to hear from the reader. He accepts the reader's comments and he shares his ideas freely with the reader.
Even though I'm new to Hibernate, this book was a fast, informative read. The author has a casual style that makes reading the book more enjoyable...to a point. But, there are problems. My two biggest issues were:
1. This book uses Hibernate 3.2.5. The latest version (as of this writing) is 3.6, which I, of course, installed. However, not being knowledgeable about the various releases, this turned out to be a huge mistake. 3.6 has some very big changes which made the installation instructions in the book almost useless. Most of the files named in the book are no longer there (the annotations module has been merged with the core, for example), some of the main classes used in the book don't seem to be there anymore, and even the configuration files are different now. I don't blame the author...this stuff just happens to tech books over time, and I could have just gone back and installed the earlier version to save myself this grief. I just wish I had not been the first person to pay over $50 for this book before realizing it has reached this state, and warned others. And this sort of thing is extremely frustrating to a new user that wants to get things rolling as quickly as possible.
2. Something I'm seeing a lot more recently in various forms of literature are obvious typos, grammar and punctuation errors, and attempts at being contemporary through the use of pseudo-words. Now, I'm no grammar Nazi, and I'm not perfect at all, but sprinkled in amongst the many typos in this book is the far too frequent use of the pseudo-word "kewl." At first I figured the author was trying to be funny, then I thought he might be using it in an ironic fashion, but after it reappeared ad nauseum, it got incredibly annoying.Read more ›
I've had this book for 2 days and I'm already at chapter 4. All I have to say is this is THE book to get if you want to learn Hibernate from scratch. Believe me, you will not hibernate when reading this book. Writing style is very clear and easy to understand. This book reminds me of the Murach series books, but much better. I also love the fact that the examples don't force you to use other miscellaneous helper tools (Ant, JUnit, etc) to get the examples working. The author apologizes for not using those tools at first, but I think this is a good thing. Had he made us use those tools, it would have complicated the learning process, not to mention having to learn how to use those tools. Don't get me wrong, eventually you should learn those tools for large projects.
The only thing I wish the book would cover more is how to use Hibernate with servlets or JSPs or other web front end technologies since now a days people want to learn how to make Hibernate work with their web applications. But I understand wholeheartedly why the author didn't do a more deeper coverage. Perhaps he should for his next book (hint...hint).
I also found some minor mistakes or omissions, not in the code, but in some of the explanations. For example, reference to where the library zip files are located (page 50) is incorrect and to get Log4j to work, the author should have explicitly stated where the log4j.properties file needs to be saved(page 97). He explicitly states where the other files need to be saved, but for some reason, he made an exception for the log4j properties file. I had to use trial and error to figure that out (needs to be in the c:\_mycode directory).Read more ›
Struggling with the various other resources on the market, I got a free, promo copy of this book before it was officially released. I guess you could consider me a 'guinea pig' for the first edition. I just want to say that this book really delivers on its promise to make Hibernate easy to learn.
Working with any persistence mechanism, be it Hibernate, JDO or EJBs or Toplink or whatever can be a struggle. However, this book really takes the edge off. It starts off with the basics, showing you how to configure a simple development environment, and it then moves on with simple examples that allow you to build confidence in your Hibernate skills.
Once the book helps you understand how Hibernate really works, it moves onto more advanced mappings of associations and inheritance. These can be tricky subjects, but their explained in a very simple and friendly manner that just makes sense. It's a great reference to fall back on as well. If you ever need to know how to map a many to one, or many to many relationship, there are simple, working examples that will show you how, and point out the common pitfalls.
And while the book makes Hibernate easy to learn, what it teaches isn't insignificant. As I said, I was struggling to catch up with the rest of my team on the Hibernate part. But after reading this book, I noticed people on the team were coming to me with their questions, and I was answering them! That's got to tell you something.
I have a bunch of Hibernate books on my desk, including Data Persistence with Hibernate (the big book), and they all have their use, but this is the book that I keep coming back to. It covers a huge amount of material, but does it in a way that allows you to turn to any given page and pick up the concept quickly.
I'm glad I got a copy of this book early, as it really helped me out. I'm sure it will help you out too.