1

JPAダイアグラムエディタをEclipseでJARからエンティティを読み取ることは可能ですか?

ターゲット エンティティを含む JAR を使用して、基礎となる persistence.xml (以下を参照) を構成しました。ただし、エディターにはエンティティが表示されないようです。

ただし、ソース ファイルにリンクすると、エディタは正常に動作します。

JAR を含む persistence.xml は次のとおりです。

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
    <persistence-unit name="com.saphir.modules.monitoring">
        <jar-file>module1.jar</jar-file>
        <jar-file>module2.jar</jar-file>
        <jar-file>module3.jar</jar-file>
        <jar-file>module4.jar</jar-file>
    </persistence-unit>
</persistence>
4

0 に答える 0