I am new to hibernate, so I have no idea about this. Hibernate generates SQL query and fires on the database.
I was able to retrieve the query from the console, but I also wish to modify the query before it is fired.
So if the query is: select this_.name as name189_1_ from employee this_ where this_.name=?
How can I modify this query to also get the employee id?
Also since different databases support a slightly different syntax, how can I modify the syntax of the generated SQL query before it is fired on the database?