Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
现在在我的应用程序中,我有一个包含所有 JPA 实体的项目。我想按照功能线模块化我的应用程序:
如何配置 JPA 2.0 以将 Feature1.jar 和 Feature2.jar 中的 JPA 实体放入同一个持久性单元中?
<jar-file>在持久性单元中 使用标签
<jar-file>
<jar-file>Feature1.jar</jar> <jar-file>Feature2.jar</jar>
耳朵应该看起来像
.ear +- /lib | +- persistence.jar | +- /META-INF | +- persistence.xml +- .war file +- Feature1.jar +- Feature2.jar