I am using JPA with Hibernate as my JPA provider. My application needs to connect to the database defined in the persistence.xml file (default block by default), grab several configured systems from the table and create an EntityManagerFactory for each of them (systems differ only in connection parameters, dialect and driver).
Can this be done with the “template” storage unit? At the moment, I use different units of persicure for each system, but it seems pointless.
source
share