I am developing spring boot app to get an entity which has join of 3-4 tables. I enabled sql output in application.properties . But i am seeing only high level SQL . Is there
any way i can print all join queries also when fetching the data :
If you are using Hibernate JPA, there are a set of logging identifiers that can tell you more than you'll ever want to know about what Hibernate is doing, and yes, there's one that specifically prints out the generated SQL.
Other JPA facilities will generally have similar log options, but since Hibernate is probably the most popular JPA provider, I did want to be specific about it.
"privilege" comes from the Latin words for "private" and "law" (legal) and dates to feudal times. To "claim privilege" meant that you were above the laws that applied to the common people.
posted 3 weeks ago
Thank you! for the inputs. Springboot is able to log query output when retreiving 1 entity using .
But incase of using- its printing only main query . But its not logging mapped Entities SQL queries.
Please update if there is any other way i can get this info