According to your model and code fragment, you are trying to query all solicitacao objects which is associated to cliente object with ID = 1. What you try is defining the query in HQL, but unfortunately HQL is only support for querying on columns which mapped to attributes (where FK are mapped to relationships).
In order to list out your required solicitacao objects, currently you have to list all from DB then check the cliente object one by one. We are resolving this problem and will keep you informed on any news about this issue.
If you require any further information, please do not hesitate to contact me again.
I would like to let you know this problem has been fixed and you can find the latest build at the following link. If you need any help, please do not hesitate to contact me again.
The deletion behavior is depends on how your define the association in class model. If you defining the association as composition, then it will recursively delete it’s child based on cascade action. Otherwise you will need to handle the deletion of child manually.