How can we have SQL queries in console after running our program?

Ans: By setting the property “show_sql” as true in hibernate configuration file.