How can I merge / extend persistence units from different JARs?

后端 未结 2 1824
春和景丽
春和景丽 2021-01-04 23:49

I use JPA persistence for my data models with Eclipselink as the persistence provider. I have a modular (OSGi) application and one of the modules contains the standard data

2条回答
  •  轮回少年
    2021-01-05 00:38

    I have a setup where a WAR file contains the persistence.xml file. The solution already described here should be usable for JAR's, WAR's and EAR's. JPA 2.0: Adding entity classes to PersistenceUnit *from different jar* automatically

提交回复
热议问题