In one Mysql database installation, I can create different databases with database relationships. My goal, for example, is to use the relationship between people in database A and addresses in database B. It seems that recently EclipseLink has added support for such cases. Composite storage unit
Unfortunately, more comprehensive examples are hard to find, and above all, the composite persistence unit combines persistence.xml files from different jar. In the project I'm working on now, I do not have classes and entities divided into different banks based on the database to which they refer. Honestly, watching the documentation on Eclipselink, I canβt understand the real effort to make the code compatible with what is required for the Composite persistence component. Do you have any experience? Are there any alternative ways?
Thanks Filippo
source share