Hibernate 3.5, the first version of Hibernate to fully support JPA 2.0, has been out for a few months now. So, we thought it was high time to deliver a few simple tutorials that show you how to configure a Hibernate 3.5 environment, and start doing some database persistence with Hibernate 3.5 and JPA 2.0 annotations.
The first tutorial shows you how to get set up with all of the required libraries that are needed by Hibernate 3.5. That includes the standard ones that come with the distribution, along with the extra slf4j file you need to download as well. (People always seem to forget that one.) Once that is done, we configure out database (MySQL, although you can use your vendor of choice), and then use Hibernate to create the underlying database tables that are needed by out Java components.
The second tutorial shows you how to do the basic CRUD, (create read update delete) operations. At the end of the tutorial, you've got a neat little class that can do queries, delete records, and save the state of your POJOs to the database.
And of course, it's all Hibernate 3.5 and JPA 2.0 compliant stuff, so it's really worth taking a look at. And the tutorial is easy to follow. If you want to learn Hibernate 3.5 quickly, this is the right place to start.
Hibernate 3.5 Tutorial Part I: Getting Started with Hibernate & JPA 2.0
Hibernate 3.5 Tutorial Part II: CRUD Operations with Hibernate & JPA 2.0
*****Some Other Hibernate Related Stuff You Might Like*****
Video Tutorials on Learning Hibernate
Hibernate Made Easy WebSite
Recommended Books for Learning Hibernate
My Similarly Coloured Book on The Simpsons
Check out these updated Tutorials for Spring 3 as well.