Showing posts with label hibernate. Show all posts
Showing posts with label hibernate. Show all posts

Java Persistence with Hibernate Review

Java Persistence with Hibernate
Average Reviews:

(More customer reviews)
Are you looking to buy Java Persistence with Hibernate? Here is the right place to find the great deals. we can offer discounts of up to 90% on Java Persistence with Hibernate. Check out the link below:

>> Click Here to See Compare Prices and Get the Best Offers

Java Persistence with Hibernate ReviewI feel a little odd rating this thing as low as two stars. After all, it does pack a lot of information into its 800+ pages. And that does make it a single point of reference ... sort of.
It's when I actually tried to use this fat tome to learn how to work with Hibernate that I encountered the first problem. I can't recommend that approach. This book is a terrible way to learn how to use Hibernate. It talks endlessly about all kinds of detail about everything you might want to do, and even provides many incomplete code snippets. But surprisingly it doesn't sit you down and walk you through a simple application actually using Hibernate. The authors do provide a full-blown application you can download and work through - but that won't be easy, dear reader, and it will take you a while to distill the basics from the advanced usage.
This seems to be a problem with most Hibernate books, for some reason - they all think they need to explain ORM to the world rather than simply show how to create an application. Explaining ORM AND showing how to build an application might be better.
So, OK, perhaps, I thought, this will become my master reference. Then I encountered the second problem. There's no good way to drill quickly to a nugget of information you need, which, after all, is the essence of a reference. Instead you will have to read through the theoretical explanations and design discussions to figure out if the trail leads you to the specific nugget you need to get your software working.
In the end I realized that the book is not good as a tutorial and not good as a reference and I was left to wonder what it might be good for. This surprised me, to be honest.
As far as I am aware, no practical Hibernate book has been written, so it would be unfair to single out this one. (The Manning book, Hibernate Quickly, is simply incorrect at too many points - you have to figure out the coding and config errors.) So I'm not singling out this one. However, in my view the praise for this book is directed at the terrific work done by the authors in creating and maintaining Hibernate rather than their work on this book. Their work in this book is unfocused and, while comprehensive and correct, ultimately difficult to use for any practical purpose.
If you want to learn how to use Hibernate, the best way I know is to work with some of the tutorials available on the Web or to download an app server and follow their documentation. You might not learn about "theta-style joins", but you will certainly learn to use Hibernate to create software much more quickly that way than by using this book.Java Persistence with Hibernate Overview
Persistence-the ability of data to outlive an instance of a program-is central to modern applications.Hibernate, the most popular Java persistence tool, provides automatic and transparent object/relational mapping making it a snap to work with SQL databases in Java applications. Hibernate applications are cheaper, more portable, and more resilient to change. Because it conforms to the new EJB 3.0 and Java Persistence 1.0 standard, Hibernate allows the developer to seamlessly create efficient, scalable Java EE applications.

Java Persistence with Hibernate explores Hibernate by developing an application that ties together hundreds of individual examples. You'll immediately dig into the rich programming model of Hibernate 3.2 and Java Persistence, working through queries, fetching strategies, caching, transactions, conversations, and more. You'll also appreciate the well-illustrated discussion of best practices in database design, object/relational mapping, and optimization techniques.

In this revised edition of the bestselling Hibernate in Action, authors Christian Bauer and Gavin King-the founder of the Hibernate project-cover Hibernate 3.2 in detail along with the EJB 3.0 and Java Persistence standard.


Want to learn more information about Java Persistence with Hibernate?

>> Click Here to See All Customer Reviews & Ratings Now
Read More...

Hibernate in Action (In Action series) Review

Hibernate in Action (In Action series)
Average Reviews:

(More customer reviews)
Are you looking to buy Hibernate in Action (In Action series)? Here is the right place to find the great deals. we can offer discounts of up to 90% on Hibernate in Action (In Action series). Check out the link below:

>> Click Here to See Compare Prices and Get the Best Offers

Hibernate in Action (In Action series) ReviewFrom a documentation point of view, Hibernate is one of the most notable exception in the world of open-source LGPL'ed projects. Its website offers a plethora of information, from solid documentation (the reference has no less than 141 pages) and various FAQs to sample projects and third-party resources. The forum is quite active and you may get answers to tricky questions. Or a little bit of rough treatment in case you haven't RTFM - but that is understandable, given the number of questions that the authors have to answer every day.
Under these circumstances, one might wonder what Gavin King (Hibernate founder) and Christian Bauer (documentation/website maintainer and Hibernate core developer) can add in order to be able to write a 400-pages book about Hibernate. I mean - sure - only by joining the reference documentation, different FAQs and guides, one can easily 'extract' a hefty 'manuscript' with more than 200 pages.
Well, I am extremely glad to tell you that this is not the case. The book not only gets you up to speed with Hibernate and its features (which the documentation does quite well). It also introduces you to the right way of developing and tuning an industrial-quality Hibernate application. I consider myself a pretty seasoned Hibernate developer, being familiar with the API since its 1.2 version in Q1-2002 (if I remember well the first app when we used Hibernate). However, I was proved wrong by "Hibernate in action" which describes best practices and even API features that were unknown or vaguely known to me. That is, until now.
The first chapter, in the good tradition of all first chapters in the world, is an introduction. It's a very well written introduction about why do we need ORM solutions in OO applications. The chapter explains the O/R impedance mismatch, while declaring quickly that OODB suck (immature and not widely adopted). Wel'll also find out that EJB also suck from a persistence point of view (for various reasons). Which can be quite a surprise knowing that Gavin is one of the authors of EJB3.0 specs. Or, on the contrary, this will explain a lot of things in the new EJB specs.
Now that we have cleared the "why Hibernate" issue, let's continue to the second chapter. Which - tradition obliged - is a "Hello, world" and a "Let's get started" chapter. Here you go, almost 50 pages later you should be able to write simple Hibernate-based persistence layers and integrate within an application server, like for instance ... Jboss ! Humm, well, why not ? They are sponsors of the Hibernate project, after all.
In the 3rd chapter, our fresh knowledge will be put to good use by starting the development of an online auction application called CaveatEmptor. This app will follow our reading progression and will grow bigger and smarter chapter by chapter. But for the moment, we are at the inception phase. What gives : a little bit of analysis, a stylish class diagram of the domain model and the resulting mapping file. And if you thought (based on 2nd chapter) that the mapping file is very intuitive and simple, you're in for a big surprise : it is, indeed, intuitive and simple ! Quite bizarre for an open-source project. As a matter of fact, the mapping file is one of the pivotal elements of Hibernate, since it addresses directly the O/R impedance mismatch, a recipy for transparent linking your POJOs and the constrained relational model. No wonder that a big part of this chapter is aimed at explaining why and how the mapping works in Hibernate. You'll see how class associations and inheritance translate at the metadata and mapping level. You'll start to understand the things that you took for granted in the previous chapter and you'll have that pleasant "uuh, I see" chain reaction. Hold on, it's just the beginning.
Because chapter 4 is going to explain once and for all the lifecycle of persistent object in Hibernate, their behavior from a persistence point of view as well as the available fetching strategies. And if you thought you already knew everything by heart from the documentation ... well, maybe you do know everything by heart. Nevertheless, it's very well synthetized in chapter 4 and I'll recommend it anytime to a coworker eager for Hibernate knowlege.
In the next chapter (the 5th) the rollercoaster slows down a bit. That is, if you already know the behavior associated with the four possible isolation modes in transactions, what are the different types of locking, what (the hell) MVCC means and the importance of transaction scopes. Chances are you already know some of this stuff quite well, but everybody needs a refresher from time to time, especially when it's well explained and when it comes with versioning and caching (1st and 2nd level) in Hibernate as a desert. By the way, I thought that OSCache supports clustering, not only SwarmCache and JbossCache, as stated in the book. There's even a thoroughly explained example of using JbossCache as a level 2 clustered cache for Hibernate, but it shouldn't be too hard to convert to other types of caching systems.
Now, if I were the author of the book, I would have placed chapter 6 before chapter 5. But I am not the author, which is quite fortunate for you dear readers since Christian and Gavin are much more competent than me at writing books about Hibernate (and probably at some other unrelated domains). They have decided to go back to mapping in chapter 6, after the short transaction/caching intermezzo. Well, they should know better... it's time for a serious dose of advanced mapping. This chapter is attacking interesting subjects such as custom mapping types (simple or composite) and (finally) the mapping of collections. Special guests stars: the whole gang of "sets, bags, lists and maps", together with explanations about their relational equivalent (associations, associations and associations !). Oh and yes "polymorphic association" (section 6.4.3) - I wasn't even aware that Hibernate is able to do that... guess I'm not that 'seasoned' (as a Hibernate developer) after all.
The 7th chapter is about "Retrieving objects efficiently" : about 45 pages for the 'retrieving' part and 6 pages for the 'efficiently' part. Fair enough ! You'll learn how to master basic HQL queries (parameters, pagination ...). You'll get a grip on the query by criteria API, as well as on advanced stuff such as dynamic queries, filters, subqueries and native SQL (very powerful). At the end of the chapter there's the Hibernate-specific solution for the n+1 selects problem, query caching and result iterators.
Following this wealth of useful knowledge, the 8th chapter starts a bit dry. Nevertheless, after a short introduction about Hibernate in managed environments, you'll find yourself again in the land of advanced programming techniques : application-level transaction implementation ! This is mostly new stuff (at least for me) - a great collection of best practices for transactional behavior management in industrial-quality apps. Somewhat unrelated but still interesting, the chapter ends with legacy schemas integration and a smart implementation example for audit logging.
The 9th (and last) chapter is about the roundtrip development in Hibernate using the classical toolset : Middlegen and/or hbm2java and/or XDoclet. All the available techniques are presented in a very detailed, step-by-step manner.
Wait : don't close the book, there's more ! Ignore Appendix A (a short and rather uninteresting document about SQL fundamentals - that is, if you know SQL). Appendix B contains mildly un-fascinating ORM implementation strategies pour les connaisseurs (come on guys, I'm just a dumb user). But - Appendix C is a great collection of real-world stories and by all means read them all ! Especially the last one, a treasure of hard to find knowledge (no spoilers, please...).
In the end, I have to confess that there is something truly interesting about 'Hibernate In Action' : albeit very technical, it reads astonishingly easy - and this kind of books is unfortunately very rare nowadays. My congratulations to the authors for this excellent piece of work - it was worth the wait.
As for you dear potential reader, if you already know all the information detailed in the book, I bow before you, great Hibernate wizard. But if you don't, what are you waiting for ? Because, if you're going to read only one technical book this summer, make sure that it's 'Hibernate In Action' (or, at least chapters 6,7 and 8, if you are that good !).Hibernate in Action (In Action series) OverviewHibernate practically exploded on the Java scene. Why is this open-source tool so popular? Because it automates a tedious task: persisting your Java objects to a relational database. The inevitable mismatch between your object-oriented code and the relational database requires you to write code that maps one to the other. This code is often complex, tedious and costly to develop. Hibernate does the mapping for you.Not only that, Hibernate makes it easy. Positioned as a layer between your application and your database, Hibernate takes care of loading and saving of objects. Hibernate applications are cheaper, more portable, and more resilient to change. And they perform better than anything you are likely to develop yourself."Hibernate in Action" carefully explains the concepts you need, then gets you going. It builds on a single example to show you how to use Hibernate in practice, how to deal with concurrency and transactions, how to efficiently retrieve objects and use caching.The authors created Hibernate and they field questions from the Hibernate community every day-they know how to make Hibernate sing. Knowledge and insight seep out of every pore of this book."What's Inside"- ORM concepts- Getting started- Many real-world tasks- The Hibernate application development process

Want to learn more information about Hibernate in Action (In Action series)?

>> Click Here to See All Customer Reviews & Ratings Now
Read More...

Professional Java Development with the Spring Framework Review

Professional Java Development with the Spring Framework
Average Reviews:

(More customer reviews)
Are you looking to buy Professional Java Development with the Spring Framework? Here is the right place to find the great deals. we can offer discounts of up to 90% on Professional Java Development with the Spring Framework. Check out the link below:

>> Click Here to See Compare Prices and Get the Best Offers

Professional Java Development with the Spring Framework ReviewThis book is almost identical to the Spring developer's guide available on the web site. They follow the same chapters and format, and provide little new information, maybe some code. But once you start to get into Spring and use it, you'll want a reference that is more in depth. With this book, you'll find yourself struggling to find the details by browsing google and javadocs all day. Pro Spring is a better book that gives you more insight into how Spring works. My background is providing a services interface layer for a J2EE portal. I'm not developing the MVC so I didn't pay attention to those parts of the book.Professional Java Development with the Spring Framework OverviewThe Spring Framework is a major open source application development framework that makes Java/J2EE(TM) development easier and more productive. This book shows you not only what Spring can do but why, explaining its functionality and motivation to help you use all parts of the framework to develop successful applications.You will be guided through all the Spring features and see how they form a coherent whole. In turn, this will help you understand the rationale for Spring's approach, when to use Spring, and how to follow best practices. All this is illustrated with a complete sample application. When you finish the book, you will be well equipped to use Spring effectively in everything from simple Web applications to complex enterprise applications.What you will learn from this book* The core Inversion of Control container and the concept of Dependency Injection* Spring's Aspect Oriented Programming (AOP) framework and why AOP is important in J2EE development* How to use Spring's programmatic and declarative transaction management services effectively* Ways to access data using Spring's JDBC functionality, iBATIS SQL Maps, Hibernate, and other O/R mapping frameworks* Spring services for accessing and implementing EJBs* Spring's remoting frameworkWho this book is forThis book is for Java/J2EE architects and developers who want to gain a deeper knowledge of the Spring Framework and use it effectively.Wrox Professional guides are planned and written by working programmers to meet the real-world needs of programmers, developers, and IT professionals. Focused and relevant, they address the issues technology professionals face every day. They provide examples, practical solutions, and expert education in new technologies, all designed to help programmers do a better job.

Want to learn more information about Professional Java Development with the Spring Framework?

>> Click Here to See All Customer Reviews & Ratings Now
Read More...

JBoss at Work: A Practical Guide Review

JBoss at Work: A Practical Guide
Average Reviews:

(More customer reviews)
Are you looking to buy JBoss at Work: A Practical Guide? Here is the right place to find the great deals. we can offer discounts of up to 90% on JBoss at Work: A Practical Guide. Check out the link below:

>> Click Here to See Compare Prices and Get the Best Offers

JBoss at Work: A Practical Guide ReviewThe subtitle for this book is "A Practical Guide." That subtitle is perfect. This is one of the most immediately useful and practical books I've read in a long time. I began using JBoss at the same time I started reading this book and I appreciated that the book started out with the relatively simple task of getting JBoss installed. However, while the book starts at an introductory level it doesn't stay there. It progresses through more advanced topics such as JMS, JavaMail, JAAS, and Web Services.
The writing is clear and enjoyable throughout. An extended example of a car dealer carries forward throughout the book. This helps the concepts fit together and build upon one another. JBoss at Work is highly informative and, as its subtitle promises, a practical guide. I highly recommend it.JBoss at Work: A Practical Guide Overview
Consisting of a number of well-known open source products, JBoss is more a family of interrelated services than a single monolithic application.But, as with any tool that's as feature-rich as JBoss, there are number of pitfalls and complexities, too.

Most developers struggle with the same issues when deploying J2EE applications on JBoss: they have trouble getting the many J2EE and JBoss deployment descriptors to work together; they have difficulty finding out how to get started; their projects don't have a packaging and deployment strategy that grows with the application; or, they find the Class Loaders confusing and don't know how to use them, which can cause problems.

JBoss at Work: A Practical Guide helps developers overcome these challenges. As you work through the book, you'll build a project using extensive code examples.You'll delve into all the major facets of J2EE application deployment on JBoss, including JSPs, Servlets, EJBs, JMS, JNDI, web services, JavaMail, JDBC, and Hibernate. With the help of this book, you'll:

Implement a full J2EE application and deploy it on JBoss
Discover how to use the latest features of JBoss 4 and J2EE 1.4, including J2EE-compliant web services
Master J2EE application deployment on JBoss with EARs, WARs, and EJB JARs
Understand the core J2EE deployment descriptors and how they integrate with JBoss-specific descriptors
Base your security strategy on JAAS

Written for Java developers who want to use JBoss on their projects, the book covers the gamut of deploying J2EE technologies on JBoss, providing a brief survey of each subject aimed at the working professional with limited time.

If you're one of the legions of developers who have decided to give JBoss a try, then JBoss at Work: A Practical Guide is your next logical purchase.It'll show you in plain language how to use the fastest growing open source tool in the industry today. If you've worked with JBoss before, this book will get you up to speed on JBoss 4, JBoss WS (web services), and Hibernate 3.


Want to learn more information about JBoss at Work: A Practical Guide?

>> Click Here to See All Customer Reviews & Ratings Now
Read More...

Liferay Portal 5.2 Systems Development Review

Liferay Portal 5.2 Systems Development
Average Reviews:

(More customer reviews)
Are you looking to buy Liferay Portal 5.2 Systems Development? Here is the right place to find the great deals. we can offer discounts of up to 90% on Liferay Portal 5.2 Systems Development. Check out the link below:

>> Click Here to See Compare Prices and Get the Best Offers

Liferay Portal 5.2 Systems Development ReviewThe book is not exactly what I've expected. I hoped more for a book where you in the begining install basic Liferay portal and in each chapter add more functionality into it, e.g. in second chapter author would create portlet, third chapter modify ext, etc.. But one specific task per chapter - which would be done from begining to the end, with complete source code (bolded important/interesting parts).
I had little bit problems to orientate within that, as it was written as was. Also I found quite strange when there were parts like "create directory, create file, ..." and in the end of chapter was told "or you can simply run create.sh script and modify created files".
I liked the "Whats happening?" sections of the book, those were quite interesting. Anyway still one of best books for Liferay developers published so far :)Liferay Portal 5.2 Systems Development OverviewThis book focuses on teaching by example. Every chapter provides an overview, and then dives right into hands-on examples so you can see and play with the solution in your own environment. All code samples run on both the latest Enterprise and Community releases. This book will be most useful to professional Java developers who want to build custom web sites, portals, and highly customized intranet applications using Liferay portal as a framework. This book is for Java developers, and you will get most from the book if you already work with Java but you need not have prior experience on Liferay portal. Although Liferay portal makes heavy use of open source frameworks such as Spring, Hibernate, Struts, and Lucene, no prior experience using these is assumed.

Want to learn more information about Liferay Portal 5.2 Systems Development?

>> Click Here to See All Customer Reviews & Ratings Now
Read More...