The main thing to remember when using hql is the use the class name and field names instead of the table and column names we are used to in SQL.
hql = "From EntityName";
hql = "Select id, name From Employee";
hql = "From Employee where id = 22";
hql = "From Author a, Book b Where a.id = book.author";