开发者

how to enable sql log in openjpa?

开发者 https://www.devze.com 2023-02-01 10:33 出处:网络
I have proram written using java,jps.Now i can see logs on cosole as folllows: INSERT INTO XYZ (a,b,c) VALUES (?, ?, ?) [org.apache.openjpa.jdbc.kernel.JDBCStoreManager$CancelPreparedStatement]

I have proram written using java,jps.Now i can see logs on cosole as folllows:

INSERT INTO XYZ (a,b,c) VALUES (?, ?, ?) [org.apache.openjpa.jdbc.kernel.JDBCStoreManager$CancelPreparedStatement]

I also want to see the values passed to in开发者_运维技巧sert query in log.How can i see it?AM using openjpa as jpa provider.


Set openjpa.ConnectionFactoryProperties=PrintParameters=True.

0

精彩评论

暂无评论...
验证码 换一张
取 消