掲示板

How to log SQL queries in Service Builder

9年前 に Muhammad Taha によって更新されました。

How to log SQL queries in Service Builder

Junior Member 投稿: 63 参加年月日: 12/05/01 最新の投稿
Hi,

I have generated a service using LR SB, it's using default "liferayDataSource" as per the requirement. now I want to log SQL queries during CRUD operations on that service ..

Thanks in Advance..
thumbnail
9年前 に Jitendra Rajput によって更新されました。

RE: How to log SQL queries in Service Builder (回答)

Liferay Master 投稿: 875 参加年月日: 11/01/07 最新の投稿
now I want to log SQL queries during CRUD operations on that service ..


Does it means you want to see SQL generated in the back end when Liferay execute service builder methods ?

If so then by using below property in portal-ext you can see SQL generated
hibernate.show_sql=true


Thank you,
Jitendra
9年前 に Muhammad Taha によって更新されました。

RE: How to log SQL queries in Service Builder

Junior Member 投稿: 63 参加年月日: 12/05/01 最新の投稿
Thank you Jitendra..it worked for me...