Tutorial IIII: Hibernate without the Java Persistence API: Mapping Entities with the XML Configuration File
I've been trying my best to get some interesting and easy to follow tutorials, on a variety of subjects, out to the broader Java community. We'll be covering a wide range of topics here in the next few months, but the initial topic has been Hibernate, and from the amount of moaning and groaning I'm hearing every time I post another tutorial on Hibernate, I'm thinking it's time I jumped onto Spring or Seam or JSF or something new. Well, we'll make that move soon. (Some DataNucleus is coming next week) In the time being, we have a couple more Hibernate based tutorials to get out there.
The first tutorial we did was simply helping you to get started with a Hibernate 3.5, JPA 2.0 compliant development environment:
Tutorial I: Configuring Your Development Environment for Hibernate with JPA
The next Hibernate learning guide was designed to simply introduce you to performing CRUD operations with Hibernate and JPA annotated POJOs.
Tutorial II: Hibernate & JPA Basics - Performing CRUD Operations
Of course, the big complaint there was that while we used JPA annotations on our POJOs, we still used the Hibernate API, which rubbed some people the wrong way. So, we redid the tutorial to show you how to use Hibernate as your persistence provider, but write code that was completely JPA compliant, and did not have any references to the Hibernate API.
Tutorial III: Hibernate without Hibernate? Using Hibernate as Your JPA 2.0 Implementation Provider
So, it was Hibernate with JPA annotated POJOs, and then Hibernate without Hibernate. It just seems fair that we would round this all off with a little tutorial on Hibernate with just Hibernate, and no cute little POJOs that need to be decorated with JPA annotations. This tutorial goes back to the old way of doing things, with just Hibernate and the XML configuration file.
By the way, we'll be bringing in some more persistence providers into the mix next week, and shake off this lean towards Hibernate. We've got some great tutorials on DataNucleus, and we're looking at perhaps a tutorial or two on OpenJPA and the like, if we can find someone from that community to write one or two for us. Hint Hint
*********************
Hibernate Made Easy WebSite
Video Tutorials on Learning Hibernate
Recommended Books for Learning Hibernate
Check out this updated Tutorial for Spring 3