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


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.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s