A good place to start if you are unfamiliar with HQL is
this section of the Hibernate documentation.
"selecting all datas from the database" is usually a bad idea, but I think you mean all data from a particular table? If so, the HQL differs a little from the SQL:
will select all data from whatever table that particular class is mapped to returning it as a List of instances of that particular object, and:
will select all data from whatever table that particular class is mapped to returning only those named properties as a List of Object arrays.