JPA-Eclipse link, use Composite Persistence Units without <jar-file>

495 views Asked by At

I need to use two difrent databases, with relation in entities between them. I want to have all entities in on project and use Composite Persistence Unit to manage which entity will be storen on which database. Is this possible? I found only example with one Composite Persistence Unit and Composite Persistence Unit members in difrent jars. If my idea is not possible what i need to do, to compile persistence units to jars? I need to put in this jar Entitiy classes too? What about relations between this entities?

0

There are 0 answers