Check out example codes for "spring boot hibernate log sql". It will help you in understanding the concepts better.

Code Example 1

logging.level.org.hibernate.SQL=DEBUG
logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE

Learn ReactJs, React Native from akashmittal.com