开发者

Does Hibernate log the values that it assigns to placeholders in prepared SQL statements?

Does Hibernate log the values that it assi开发者_Python百科gns to placeholders in prepared SQL statements? How can configure Log4j so that it writes these values to my log files?


Yes it does (see the Chapter 3.5 Logging). Activate logging of the following categories:

log4j.logger.org.hibernate.SQL=DEBUG
log4j.logger.org.hibernate.type=TRACE
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜