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

以前の構成でプロジェクトをビルドします。つまり、メタモデル クラスを生成する永続ユニットを 1 つだけ使用します。次に、2 番目の永続ユニットを 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 に答える