legacy-knowledge-base
公開されました Sep. 10, 2025

Hibernate クエリ パラメータのロギングを有効にする方法

written-by

Mariano Alvaro

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • データベースに対して実行されたクエリとそのパラメータを確認すると便利な場合があります。

解像度

  • ログに情報を表示するには、次の手順を実行する必要があります。
    • コントロール パネルから、次のカテゴリを ALL に追加します。 org.hibernate.SQL
    • コントロール パネルから、次のカテゴリを ALL に追加します。 org.hibernate.type

追加情報

  • これは、すべてのデータベース クエリがトレースされるため、特に本番環境では 注意で実行する必要があります。

did-this-article-resolve-your-issue

legacy-knowledge-base