通過查看到開放JPA的網站我發現我可以利用日誌生成的SQL如下:記錄JPA SQL使用Weblogic 10.3
<property name="openjpa.Log" value="DefaultLevel=WARN, Runtime=INFO, Tool=INFO"/>
,如果我嘗試上述屬性添加到我的堅持.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?