Well, after a few false starts, I have a simple example up and running with hibernate. My next task will be to see how long it would take to implement this everywhere in our application. Unfortunatly it’s probably going to be a slightly mammoth task. Not so much because of the work invovled, but I’ll need to get buy in from the other developers on the project. I think the easiest step is still going to be JDBC->JDBC/ActiveRecord->Hibernate/ActiveRecord.
Hibernate kicks some serious arse. Just be careful with your properties. I was pulling my hair out for ages over a NullPointerException deep in the cirrus.hibernate.impl package. However it turned out that I had a property “id” in the mapping, but the accessor in the Bean implementation was “getID”. It would be nice if I received a kinder exception, but that’s life.
If I get time I may make up some patches for the hibernate guys, though I gather things have changed internally for hibernate2.
Besides our talk, my most valuable experience at RailsConf was talking with T...
Jamis Buck and I have been writing similar articles lately. We’ve both...