Yup, if you paste SQL into the MySQL query browser, that should run. When I'm having trouble with my queries, I often take the SQL generated by Hibernate, stuff it into the MySQL query browser, and see what happens. Sometimes, fiddling with the SQL can help me see what I've done wrong in my HQL or Criteria queries.
HQL is Hibernate based, and Hiberante is based on
Java Objects. So, I can have one Java object that maps to three database tables. Selecting * from that class would generate SQL that queries all three databases. So, in just that one scenario, you can see that the HQL and SQL would be very, very different.
In many applications, the database tables and Java objects mirror each other, so sometimes the SQL and HQL can look very, very similar. But don't let this lull you into thinking they are the same. They are two very different monsters.
-Cameron McKenzie