0

我得到:诊断错误:javax.annotation.processing.FilerException:尝试为类型重新创建文件

为了:

                            <compilerArguments>-Aeclipselink.persistencexml=src/main/resources/META-INF/persistence.xml -Aeclipselink.persistenceunits=com.mysimpatico_MemoPlatform-database_nbm_1.0-SNAPSHOTPU,com.mysimpatico_inmemory_persistence_nbm_1.0-SNAPSHOTPU</compilerArguments>

我试图同时拥有一个具有相同架构的临时(内存中)和一个永久数据库。

请参考这个问题。

4

1 回答 1

0

使用以前的配置构建项目,即只有一个持久单元来生成元模型类。然后将第二个持久性单元添加到 persistence.xml 并将以下内容添加到 pom.xml:

<compilerArguments>  -Aeclipselink.persistenceunit=com.mysimpatico_MemoPlatform-database_nbm_1.0-SNAPSHOTPU </compilerArguments> (the name of 1 persistenceunit)
于 2010-08-21T20:17:07.633 回答