Developer Aspirations

YAPB - Yet Another Programming Blog




January 2010

Two Databases, One Hibernate

by Colin Miller, on development, Hibernate, Scalability

Hibernate is a very interesting ORM product that hides the SQL behind mapping your objects to your database. In general it works pretty well at making it easier to deal with database objects. Unfortunately, there seems to be some lack of flexibility. For instance, utilizing two databases for the same dataset in Hibernate. Here's my issue: I have a MySQL database that acts as a primary master. There is a…