This content has been marked as final. Show 1 reply
Now, we want to use EJB3. I have spent my day searching how to do so with Hibernate, and obviously, you can't do so. As I understand, however, given you ignore the relations for now (just fill the customerId with an int) you can specify two EntityManager's, one of them used for Customer using a datasource for the Oracle database and Hibernate's oracle dialect, and one entity-manager for the mysql database using MySQLDialect. Is this true?
yes, 1 Persistence unit/emf per DB is the way to do it