Introduction to HQL
HQL is fully object-oriented, understanding notions like inheritance, polymorphism and association. HQL allows representing SQL queries in object-oriented terms—by using objects and properties of objects. Queries are case-insensitive, except for names of Java classes and properties. The tables are mapped to Java classes in the hbm files. The columns in the tables are mapped to the properties in the hbm file and those properties are set in the Java class.
Read More : http://vinaytechs.blogspot.com/2009/12/hql-hibernate-mappings.html