Hibernate and Database Refactoring

I am on a project where we are having to refactor our database frequently for any number of reasons. Hibernate has paid huge dividends in this area, as virtually our entire database is mapped into POJO’s. The net effect is that we get strong typing for a majority of our database interactions (we primarily navigate getter/setters & using Criteria queries), and thus refactoring is much-much easier. We do have a handful of SQL / HQL queries that have column / attribute names in strings – these are obviously much harder to refactor. Is there a another way for us to do update statements that modify a large number of rows, but still give us the strong typing we get by using our mapped POJO’s else where?

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • LinkedIn
  • DZone
  • Facebook
  • Digg
  • del.icio.us
  • Reddit
This entry was posted in Historic. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>