Open JPA Webサイトを調べると、次を使用して生成されたSQLをログに記録できることがわかりました。
<property name="openjpa.Log" value="DefaultLevel=WARN, Runtime=INFO, Tool=INFO"/>
上記のプロパティをpersistence.xmlに追加しようとすると、weblogicから次の警告が表示されます。
<Warning> <J2EE> <BEA-160202> <You have specified a ope
njpa.Log setting in your configuration for persistence unit services.ear#services-ejb.jar#exp#exp. This setting will be ignored, and all log messages
will be sent to the WebLogic logging subsystem. Trace-level logging is controlle
d by the various JPA-specific debug settings in config.xml, or via the WebLogic
console.>
コンソールのオプションは何か、またはconfig.xmlを編集してSQLを出力する方法を知っている人はいますか?