Stacey on Software

Agile

Wishing for the days of XML Deploy-time configuration??!!

March 09, 2008

Wow, so here’s a short one for you.

I’m tuning an application to utilize the Hibernate 2nd level cache. The application uses Hibernate Annotations extensively to mark up the model and map it to PostgreSQL.

And I’ve just caught myself sitting back and wishing for old-school Hibernate XML mapping files so I wouldn’t have to recompile the project to explore each scenario.

I’m not changing a bit of application logic, this is purely an installation environment specific tuning exercise. And yet I have to recompile code and copy it up to the server instead of just tuning an XML file or two and restarting.

I know a lot of people (including myself!) have become enamored with Annotations, but you really have to sit back and understand what problems are best solved with them, and maybe what problems aren’t.


Welcome to my personal blog. Writing that I've done is collected here, some is technical, some is business oriented, some is trans related.