I am wondering whether it's possible to have Hibernate perform data replication while performing saves. I have two separate databases with the same schema, and duplicated data. I know I can access two databases with two separate config files. But since the data on the two DBs are the same, I want to be able to update both database updates within one session.save(), so that I can avoid code duplication at my application level. Is this possible with Hibernate? Any help would be appreciated. Thanks!
|