My scenario is that I have some payment transaction data in MySQL and some documents like invoices documents in MongoDB. There are no association need between these two data store. The question is how I can access both of them at the same time with O/R Mapping support. It seems we can have JPA for MongoDB. But I’m not sure how we can access both data store with the JPA api in the same application.
Thanks!
EclipseLink (as of 2.4) has JPA support for both MySQL and MongoDB. EclipseLink also supports Composite Persistence UNits, that allows multiple persistence units to be accessed as a single persistence unit, and allows relationships across them.