users@jpa-spec.java.net

[jpa-spec users] Persistence unit dependencies

From: <gchauvet_at_zatarox.com>
Date: Mon, 20 Mar 2017 08:58:11 +0000 (UTC)

Hello everyone,

Since some weeks, I'm facing to a JPA case :
I have 2 persistant units (A & B). Persistant unit A have 40 tables,
persistant unit B have 30 tables.
But A depends of a table in B, through an unidirectinal navigation.

What is the best approach for this case ?
My current fix is to add
<exclude-unlisted-classes>false</exclude-unlisted-classes> to
persistant unit A, but it is a little bit "ugly" (behavior of shared
entities between the 2 PU)

Regards,