How to write a join query in HQL
===

I have 3 tables in DB.
I want to make join query like this:
// code begins
"from Installment i join Payment p on i.vcode=p.Installment_Vcode and p.vcode=:vcode"
// end of code
but when I run it this error happens:
// error begins
unexpected token: on near line 1, column 47 [from information.Installment i join Payment p on i.vcode=p.Installment_Vcode]
// error ends
please help me
